Simplify letsencrypt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user