NGINX configuration instructions

From SynBioHubWiki
Jump to: navigation, search

Instructions for managing nginx server blocks can be found here.

The server block for a SynBioHub installation listening on port 7777 is below:

client_max_body_size 800m;
proxy_connect_timeout 6000;
proxy_send_timeout 6000;
proxy_read_timeout 6000;
send_timeout 6000;
server {
        listen 80;
        server_name _;

        location / {
                proxy_set_header X-Real-IP  $remote_addr;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $host;

This is most useful when you would like to host SynBioHub on a subdomain alongside other content (using nginx as an HTTP proxy) or using HTTPS.

Newcastle-university.png Icos.png University-utah.png   AntarcticDesign.png