From d98204a388726c41562635262135f1856a51ca13 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 27 Jan 2025 10:06:20 +0100 Subject: [PATCH] massage.themself.eu --- .../lets-encrypt-create-cert.jenkinsfile | 2 +- .../https/https-massage-themself-eu.conf | 30 ++++++++++++++++ nginx-config/https/https-themself-eu.conf | 35 ++----------------- 3 files changed, 33 insertions(+), 34 deletions(-) create mode 100644 nginx-config/https/https-massage-themself-eu.conf diff --git a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile index 4df1279..27b8f11 100755 --- a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile +++ b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile @@ -1,7 +1,7 @@ def domainsToCert = [ [ false, 'bodypainter.eu', "www", "mail", "stat"], - [ false, 'themself.eu', "www", "mail", "stat" ], + [ false, 'themself.eu', "www", "mail", "stat", "massage" ], [ false, "artiks.tk", "www", "mail", "api", "angular", "bodypainter", "themself","arti24"], [ false, "arti24.eu", "www", "mail", "api", "angular", "bodypainter", "themself", "arti24"] diff --git a/nginx-config/https/https-massage-themself-eu.conf b/nginx-config/https/https-massage-themself-eu.conf new file mode 100644 index 0000000..b22118e --- /dev/null +++ b/nginx-config/https/https-massage-themself-eu.conf @@ -0,0 +1,30 @@ +server { + + listen 443 ssl; + server_name massage.themself.eu; + + server_tokens off; + + ssl_certificate /letsencrypt/live/themself.eu/fullchain.pem; + ssl_certificate_key /letsencrypt/live/themself.eu/privkey.pem; + + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers HIGH:!aNULL:!MD5; + + + location / { + + # Ograniczenie liczby żądań + limit_req zone=ip_limit burst=20 nodelay; + + proxy_pass http://zaklik_by_node_js:3001; + + 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; + } + +} \ No newline at end of file diff --git a/nginx-config/https/https-themself-eu.conf b/nginx-config/https/https-themself-eu.conf index fcae187..1040830 100644 --- a/nginx-config/https/https-themself-eu.conf +++ b/nginx-config/https/https-themself-eu.conf @@ -2,7 +2,7 @@ server { listen 443 ssl; - server_name www.themself.eu; + server_name www.themself.eu themself.eu; ssl_protocols TLSv1.2 TLSv1.3; @@ -11,37 +11,6 @@ server { ssl_certificate /letsencrypt/live/themself.eu/fullchain.pem; ssl_certificate_key /letsencrypt/live/themself.eu/privkey.pem; - return 301 https://bodypainter.eu$request_uri; + return 301 https://massage.themself.eu$request_uri; } - -server { - - listen 443 ssl; - server_name themself.eu; - - server_tokens off; - - ssl_certificate /letsencrypt/live/themself.eu/fullchain.pem; - ssl_certificate_key /letsencrypt/live/themself.eu/privkey.pem; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_ciphers HIGH:!aNULL:!MD5; - - - location / { - - # Ograniczenie liczby żądań - limit_req zone=ip_limit burst=20 nodelay; - - proxy_pass http://zaklik_by_node_js:3001; - - 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; - } - -} \ No newline at end of file