From 5e0ad69cd80bd01016fdcf5fd729926479e163db Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 13 Mar 2026 11:23:46 +0000 Subject: [PATCH] removing template as we use terraform now --- template/http.conf | 17 ---------------- template/https.conf | 47 --------------------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 template/http.conf delete mode 100644 template/https.conf diff --git a/template/http.conf b/template/http.conf deleted file mode 100644 index 1b18b7d..0000000 --- a/template/http.conf +++ /dev/null @@ -1,17 +0,0 @@ -upstream example_backend { - server 192.168.88.52:8080; - server 1.1.1.1 backup; - } - -server { - server_name example.tryton.geeraert.eu www.example.tryton.geeraert.eu; - location / { - proxy_pass http://example_backend; - } - location /.well-known/acme-challenge/ { - root /var/www/certbot; - } - - listen 80 ; -} - diff --git a/template/https.conf b/template/https.conf deleted file mode 100644 index 36f85d2..0000000 --- a/template/https.conf +++ /dev/null @@ -1,47 +0,0 @@ -upstream example_backend { - server 192.168.88.52:9080; - server 1.1.1.1 backup; - } - -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://example_backend; - } - - } - location /.well-known/acme-challenge/ { - root /var/www/certbot; - } - - listen 443 ssl; # managed by Certbot - http2 on; - ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem; - ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem; - - -} -server { - if ($host = www.example.tryton.geeraert.eu) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - if ($host = example.tryton.geeraert.eu) { - return 301 https://$host$request_uri; - } # managed by Certbot - - - server_name www.example.tryton.geeraert.eu example.tryton.geeraert.eu; - listen 80; - return 404; # managed by Certbot - -} - -