From c3a5f69046b135eff88084ad7fd39f13a80004b8 Mon Sep 17 00:00:00 2001 From: Artur Date: Sun, 6 Oct 2024 20:44:40 +0200 Subject: [PATCH] http+https --- nginx-config/http/http-for-letsencrypt.conf | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nginx-config/http/http-for-letsencrypt.conf diff --git a/nginx-config/http/http-for-letsencrypt.conf b/nginx-config/http/http-for-letsencrypt.conf new file mode 100644 index 0000000..a437346 --- /dev/null +++ b/nginx-config/http/http-for-letsencrypt.conf @@ -0,0 +1,24 @@ +server { + + listen 80 default_server; + + server_tokens off; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + + proxy_pass http://arti-angular-app:4200; + + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } + + +}