diff --git a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile index ec92510..f38da0e 100755 --- a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile +++ b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile @@ -10,7 +10,7 @@ def domainsToCert = [ [ false, 'bodypainter.eu', "www", "mail", "stat"], [ false, 'themself.eu', "www", "mail", "stat", "massage", "driving", "kopama" ], [ false, "artiks.tk", "www", "mail", "api", "angular", "bodypainter", "themself","arti24"], - [ false, "arti24.eu", "www", "api", "angular", "ai", "job-finder", "zaklik"] + [ false, "arti24.eu", "www", "api", "angular", "ai", "job-finder", "zaklik", "plecianki"] ] def createCert(domains) { diff --git a/nginx-config/https/plecianki.pl.conf b/nginx-config/https/plecianki.pl.conf index 01c0894..517f137 100644 --- a/nginx-config/https/plecianki.pl.conf +++ b/nginx-config/https/plecianki.pl.conf @@ -1,4 +1,3 @@ -# Redirect z HTTPS na nową domenę kopama.com.pl server { listen 443 ssl; server_name plecianki.pl; diff --git a/nginx-config/https/plecianki.proxy.conf b/nginx-config/https/plecianki.proxy.conf new file mode 100644 index 0000000..5c40dc4 --- /dev/null +++ b/nginx-config/https/plecianki.proxy.conf @@ -0,0 +1,25 @@ +# Redirect z HTTPS na nową domenę kopama.com.pl +server { + listen 443 ssl; + server_name plecianki.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.2 TLSv1.3; + ssl_ciphers HIGH:!aNULL:!MD5; + + location / { + # Ograniczenie liczby żądań + limit_req zone=ip_limit burst=20 nodelay; + proxy_pass http://arti24-container:3332; + 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