From 61499a3c989034e42a2b94b77822b03ecf249181 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 21 Oct 2024 09:37:48 +0200 Subject: [PATCH] proxy_pass http://chat-gpt:5000; --- nginx-config/https/https-ai-arti24-eu.conf | 29 +++++++++++++++++++++ nginx-config/https/https-api-arti24-eu.conf | 4 +-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 nginx-config/https/https-ai-arti24-eu.conf diff --git a/nginx-config/https/https-ai-arti24-eu.conf b/nginx-config/https/https-ai-arti24-eu.conf new file mode 100644 index 0000000..2d0aefd --- /dev/null +++ b/nginx-config/https/https-ai-arti24-eu.conf @@ -0,0 +1,29 @@ +server { + + listen 443 ssl; + server_name api.arti24.eu; + + server_tokens off; + + ssl_certificate /letsencrypt/live/arti24.eu/fullchain.pem; + ssl_certificate_key /letsencrypt/live/arti24.eu/privkey.pem; + + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + + + location / { + + proxy_pass http://angular-services:8800; + + 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; + } + + + +} diff --git a/nginx-config/https/https-api-arti24-eu.conf b/nginx-config/https/https-api-arti24-eu.conf index 2d0aefd..757dd35 100644 --- a/nginx-config/https/https-api-arti24-eu.conf +++ b/nginx-config/https/https-api-arti24-eu.conf @@ -1,7 +1,7 @@ server { listen 443 ssl; - server_name api.arti24.eu; + server_name ai.arti24.eu; server_tokens off; @@ -14,7 +14,7 @@ server { location / { - proxy_pass http://angular-services:8800; + proxy_pass http://chat-gpt:5000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;