snikket-web-proxy/nginx/http.template

29 lines
844 B
Plaintext
Raw Normal View History

2020-11-05 15:35:56 +00:00
server {
listen ${SNIKKET_TWEAK_HTTP_PORT};
listen [::]:${SNIKKET_TWEAK_HTTP_PORT};
2020-11-05 15:35:56 +00:00
server_name ${SNIKKET_DOMAIN};
server_name groups.${SNIKKET_DOMAIN};
server_name share.${SNIKKET_DOMAIN};
2020-11-05 15:35:56 +00:00
root /var/www/html;
2020-11-05 15:35:56 +00:00
location / {
try_files $uri @portal;
}
location @portal {
proxy_pass http://localhost:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT};
2020-11-05 15:35:56 +00:00
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
2020-11-05 15:35:56 +00:00
}
location /_/ {
proxy_pass http://localhost:${SNIKKET_TWEAK_INTERNAL_HTTP_PORT}/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
2020-11-05 15:35:56 +00:00
}