infrastructure/njallavps/swag/nginx/status.anonymousland.org

30 lines
963 B
Org Mode
Raw Normal View History

## Version 2021/05/18
# make sure that your dns has a cname set for element
# if element is running in bridge mode and the container is named "element", the below config should work as is
# if not, replace the line "set $upstream_app element;" with "set $upstream_app <containername>;"
# or "set $upstream_app <HOSTIP>;" for host mode, HOSTIP being the IP address of element
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name status.anonymousland.org;
include /config/nginx/ssl.conf;
location / {
include /config/nginx/proxy.conf;
# include /config/nginx/resolver.conf;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8001;
# proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
resolver 127.0.0.11 valid=30s;
}
}