From 883be8388e042001a2047d07f540cfb146c7f651 Mon Sep 17 00:00:00 2001 From: Artur Date: Sun, 6 Oct 2024 21:36:17 +0200 Subject: [PATCH] [ false, "arti24.eu", "www", "api"] --- .../lets-encrypt-create-cert.jenkinsfile | 2 +- nginx-config/https/https-api-arti24-eu.conf | 29 +++++++++++++++++++ .../{https.conf => https-arti24-eu.conf} | 0 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 nginx-config/https/https-api-arti24-eu.conf rename nginx-config/https/{https.conf => https-arti24-eu.conf} (100%) diff --git a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile index 0278957..7e48cf9 100755 --- a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile +++ b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile @@ -3,7 +3,7 @@ def domainsToCert = [ // [ false, 'bodypainter.eu', "mail", "stat", "www" ] // [ false, 'artikus.dynu.net', "mail", "stat", "www", "nextcloud" ] - [ false, "arti24.eu", "www"] + [ false, "arti24.eu", "www", "api"] ] def createCert(domains, repo){ diff --git a/nginx-config/https/https-api-arti24-eu.conf b/nginx-config/https/https-api-arti24-eu.conf new file mode 100644 index 0000000..2d0aefd --- /dev/null +++ b/nginx-config/https/https-api-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.conf b/nginx-config/https/https-arti24-eu.conf similarity index 100% rename from nginx-config/https/https.conf rename to nginx-config/https/https-arti24-eu.conf