Please note this article describes running Unimus behind a reverse proxy.
For running Unimus behind a forward proxy, see this article:Running Unimus behind a HTTP(S) proxy
Unimus fully supports running behind reverse proxies, both Apache and nginx.
Example nginx configuration
Code Block | ||
---|---|---|
| ||
location / {
# replace with your Unimus IP if not running on same server as proxy
proxy_pass http://127.0.0.1:8085;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-By $server_addr:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_read_timeout 30m;
proxy_send_timeout 30m;
client_max_body_size 0;
proxy_cache off;
proxy_buffering off;
proxy_request_buffering off;
} |