Files
nginx_sites/fet.at/etherpad.conf
2018-03-25 20:23:08 +02:00

32 lines
752 B
Nginx Configuration File

# -*-nginx-*-
server {
listen 80;
server_name etherpad.fet.at www.etherpad.fet.at;
location /.well-known {
root /srv/pxy/fet.at;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name etherpad.fet.at www.etherpad.fet.at;
ssl_certificate /etc/letsencrypt/live/etherpad.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/etherpad.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/etherpad.fet.at/chain.pem;
include snippets/ssl.conf;
location / {
proxy_pass http://192.168.95.11:9001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}