add the proxy arguments

This commit is contained in:
2024-07-22 10:04:17 +01:00
parent 794f73669a
commit 3ceb7a0afd
2 changed files with 16 additions and 3 deletions
+8
View File
@@ -7,6 +7,14 @@ server {
server_name bookstack.tryton.geeraert.eu www.bookstack.tryton.geeraert.eu;
location / {
proxy_pass http://bookstack_backend;
location ~* \.(html|css|jpg|gif|ico|js)$ {
proxy_cache cache;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 301 302 30m;
expires 30m;
proxy_pass http://bookstack_backend;
}
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
+8 -3
View File
@@ -7,6 +7,14 @@ server {
server_name example.tryton.geeraert.eu www.example.tryton.geeraert.eu;
location / {
proxy_pass http://example_backend;
location ~* \.(html|css|jpg|gif|ico|js)$ {
proxy_cache cache;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 301 302 30m;
expires 30m;
proxy_pass http://nextcloud_backend;
}
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
@@ -15,9 +23,6 @@ server {
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
#include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}