Skip to content
Snippets Groups Projects
hypha.conf 522 B
Newer Older
  • Learn to ignore specific revisions
  • upstream hypha {
        server py:9001;
    }
    
    server {
        listen 8090;
        server_name hypha.test apply.hypha.test;
    
        location /media/ {
            alias /usr/local/hypha/media/;
        }
    
        location /static/ {
            alias /usr/local/hypha/static/;
        }
    
        location / {
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_pass http://hypha;
        }
    }