initial commit
This commit is contained in:
67
fet.at/default.conf
Normal file
67
fet.at/default.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
# -*-nginx-*-
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name fet.at 128.131.95.208;
|
||||
ssl_certificate /etc/letsencrypt/live/www.fet.at/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/www.fet.at/privkey.pem;
|
||||
root /srv/pxy/fet.at;
|
||||
location /.well-known {
|
||||
allow all;
|
||||
}
|
||||
location / {
|
||||
return 302 https://www.fet.at$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name www.fet.at;
|
||||
root /srv/pxy/fet.at;
|
||||
location /.well-known {
|
||||
allow all;
|
||||
}
|
||||
|
||||
location /etherpad {
|
||||
proxy_pass http://192.168.95.11:3333;
|
||||
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 www.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:3333;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
# index index.html;
|
||||
}
|
||||
location /.well-known {
|
||||
allow all;
|
||||
}
|
||||
|
||||
location /alt {
|
||||
return 302 https://www.alt.fet.at$request_uri;
|
||||
}
|
||||
location /twiki {
|
||||
return 302 https://www.alt.fet.at$request_uri;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user