Simplify letsencrypt

This commit is contained in:
root
2018-03-29 16:13:38 +02:00
parent 3cb8e7ad71
commit d592a40806
18 changed files with 83 additions and 188 deletions

View File

@@ -1,25 +1,27 @@
# -*-nginx-*-
server {
listen 80;
server_name alt.triton.fet.at www.alt.triton.fet.at glonass.htu.tuwien.ac.at alt.fet.at www.alt.fet.at 128.131.95.212;
server_name glonass.htu.tuwien.ac.at 128.131.95.212;
location /.well-known {
root /srv/pxy/alt/;
allow all;
}
location / {
return 301 https://www.alt.fet.at$request_uri;
}
}
server {
listen 80;
server_name alt.triton.fet.at www.alt.triton.fet.at alt.fet.at www.alt.fet.at;
include snippets/letsencrypt.conf;
}
server {
listen 443 ssl http2;
server_name alt.triton.fet.at www.alt.triton.fet.at glonass.htu.tuwien.ac.at alt.fet.at;
server_name alt.triton.fet.at www.alt.triton.fet.at alt.fet.at;
ssl_certificate /etc/letsencrypt/live/www.alt.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.alt.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.alt.fet.at/chain.pem;
include snippets/ssl.conf;
location / {
@@ -34,7 +36,6 @@ server {
ssl_certificate /etc/letsencrypt/live/www.alt.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.alt.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.alt.fet.at/chain.pem;
include snippets/ssl.conf;
location = / {

View File

@@ -3,13 +3,7 @@ server {
listen 80;
server_name www.cloud.fet.at cloud.fet.at;
location /.well-known {
root /srv/pxy/cloud2;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
include snippets/letsencrypt.conf;
}
server {
@@ -19,8 +13,8 @@ server {
ssl_certificate /etc/letsencrypt/live/www.cloud.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.cloud.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.cloud.fet.at/chain.pem;
include snippets/ssl.conf;
# include snippets/ldap.conf;
client_max_body_size 4000M;
@@ -30,9 +24,6 @@ server {
index index.php;
location / {
try_files $uri @pxy;
}
location @pxy {
proxy_pass http://192.168.95.22;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

View File

@@ -3,13 +3,7 @@ server {
listen 80;
server_name fet.at 128.131.95.208;
location /.well-known {
root /srv/pxy/fet.at;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
include snippets/letsencrypt.conf;
}
server {
@@ -19,7 +13,6 @@ server {
ssl_certificate /etc/letsencrypt/live/fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/fet.at/chain.pem;
include snippets/ssl.conf;
location / {
@@ -31,20 +24,15 @@ server {
listen 80;
server_name www.fet.at;
include snippets/letsencrypt.conf;
client_max_body_size 50M;
location /.well-known {
root /srv/pxy/fet.at;
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 {
@@ -54,8 +42,8 @@ server {
ssl_certificate /etc/letsencrypt/live/www.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.fet.at/chain.pem;
include snippets/ssl.conf;
# include snippets/ldap.conf;
client_max_body_size 50M;

View File

@@ -3,13 +3,7 @@ server {
listen 80;
server_name git.fet.at;
location /.well-known {
root /srv/pxy/git;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
include snippets/letsencrypt.conf;
}
server {
@@ -19,8 +13,8 @@ server {
ssl_certificate /etc/letsencrypt/live/git.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/git.fet.at/chain.pem;
include snippets/ssl.conf;
include snippets/header.conf;
location / {

View File

@@ -3,13 +3,7 @@ server {
listen 80;
server_name www.mail.fet.at mail.fet.at fet.htu.tuwien.ac.at;
location /.well-known {
root /srv/pxy/mail.fet.at;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
include snippets/letsencrypt.conf;
}
server {
@@ -19,8 +13,8 @@ server {
ssl_certificate /etc/letsencrypt/live/www.mail.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.mail.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.mail.fet.at/chain.pem;
include snippets/ssl.conf;
# include snippets/ldap.conf;
location / {
@@ -30,7 +24,6 @@ server {
# proxy_redirect https://mail.fet.at:8000/ https://mail.fet.at:443/;
# proxy_redirect https://$host:8000/ https://$host:443/;
include snippets/proxy_header.conf;
# index index.html;
}
location /http {
index index.html;