location / { root __FINALPATH__/; } location /webirc/ { proxy_pass http://127.0.0.1:__PORT__/webirc/; proxy_read_timeout 600s; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; }