Skip to content

Instantly share code, notes, and snippets.

@arthurtsang
arthurtsang / run.sh
Last active September 25, 2019 06:37
run.sh to start nginx and fcgiwrap
#!/usr/bin/env bash
set -exuo pipefail
export PATH=$PATH:/bfx/bin/nextflow/19.07.0
spawn-fcgi -u www-data -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap
nginx -g "daemon on;"
nextflow "$@"
@arthurtsang
arthurtsang / nginx config
Created September 25, 2019 06:43
nginx config for git server
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html/git;
# Add index.php to the list if you are using PHP