summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--nginx/proxy.conf36
1 files changed, 23 insertions, 13 deletions
diff --git a/nginx/proxy.conf b/nginx/proxy.conf
index 6725c4c4..97b2ac48 100644
--- a/nginx/proxy.conf
+++ b/nginx/proxy.conf
@@ -1,21 +1,31 @@
+ssl_certificate /etc/letsencrypt/live/nsfisis.dev/fullchain.pem;
+ssl_certificate_key /etc/letsencrypt/live/nsfisis.dev/privkey.pem;
+ssl_session_timeout 1d;
+ssl_session_cache shared:SSL:10m;
+ssl_session_tickets off;
+
+proxy_redirect off;
+proxy_set_header Host $host;
+proxy_set_header X-Real-IP $remote_addr;
+proxy_set_header X-Forwarded-Host $host;
+proxy_set_header X-Forwarded-Server $host;
+proxy_set_header X-Forwarded-Proto $scheme;
+proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+
server {
listen 443 ssl;
listen [::]:443 ssl;
- server_name blog.nsfisis.dev;
+ server_name nsfisis.dev;
- ssl_certificate /etc/letsencrypt/live/nsfisis.dev/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/nsfisis.dev/privkey.pem;
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:10m;
- ssl_session_tickets off;
+ location / {
+ root /usr/share/nginx/html;
+ }
+}
- proxy_redirect off;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+server {
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ server_name blog.nsfisis.dev;
location / {
proxy_pass http://blog_nsfisis_nginx:80;