plausible-hosting/reverse-proxy/nginx/plausible

20 lines
415 B
Plaintext
Raw Normal View History

server {
# replace example.com with your domain name
server_name example.com;
listen 80;
listen [::]:80;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2024-05-23 14:51:55 -05:00
location = /live/websocket {
proxy_pass http://127.0.0.1:8000;
2024-05-23 14:51:55 -05:00
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
}