47 lines
1.1 KiB
Nginx Configuration File
47 lines
1.1 KiB
Nginx Configuration File
# -*-nginx-*-
|
|
|
|
server {
|
|
listen 80;
|
|
server_name etherpad.fet.at www.etherpad.fet.at;
|
|
root /srv/pxy/fet.at;
|
|
location /.well-known {
|
|
allow all;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://192.168.95.11:9001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
# location / {
|
|
# return 301 https://$host$request_uri;
|
|
# }
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name etherpad.fet.at www.etherpad.fet.at;
|
|
ssl_certificate /etc/letsencrypt/live/www.fet.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.fet.at/privkey.pem;
|
|
|
|
# ssl_certificate /etc/letsencrypt/live/fet.at/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/fet.at/privkey.pem;
|
|
|
|
# auth_ldap "FET Login";
|
|
# auth_ldap_servers fet;
|
|
root /srv/pxy/fet.at;
|
|
|
|
# root /srv/welcome;
|
|
location / {
|
|
proxy_pass http://192.168.95.11:9001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
# index index.html;
|
|
}
|
|
location /.well-known {
|
|
allow all;
|
|
}
|
|
|
|
}
|