some order with domains
This commit is contained in:
parent
7adb7f0302
commit
f6071ed206
|
|
@ -6,15 +6,14 @@ def workDir = "/_sd_/_programs_/proxy-nginx/deploy-this/lets-encrypt"
|
||||||
|
|
||||||
def domainsToCert = [
|
def domainsToCert = [
|
||||||
[ false, 'plecianki.pl', 'www'],
|
[ false, 'plecianki.pl', 'www'],
|
||||||
[ false, 'kopama.com.pl', 'www'],
|
[ false, 'kopama.com.pl', 'www'],
|
||||||
[ false, 'kopana.com.pl', 'www'],
|
[ false, 'kopana.com.pl', 'www'],
|
||||||
[ false, 'bodypainter.eu', "www", "mail", "stat"],
|
[ false, 'bodypainter.eu', "www"],
|
||||||
[ false, 'themself.eu', "www", "mail", "stat", "massage", "driving", "kopama" ],
|
[ false, 'themself.eu', "www","massage" ],
|
||||||
[ false, "artiks.tk", "www", "mail", "api", "angular", "bodypainter", "themself","arti24" ],
|
[ false, "artiks.tk" ],
|
||||||
[ false, "arti24.eu", "www", "api", "angular", "ai", "job-finder", "zaklik", "plecianki"],
|
[ false, "arti24.eu", "www", "api", "angular", "plecianki"],
|
||||||
[ false, "katb.pl", "www"],
|
[ false, "katb.pl", "www"],
|
||||||
[ false, "kursy.kopama.pl"],
|
[ false, "kursy.kopama.pl", "www"],
|
||||||
[ false, "statistic.kopama.pl"],
|
|
||||||
[ false, "statistics.kopama.pl"]
|
[ false, "statistics.kopama.pl"]
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
server {
|
|
||||||
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name driving.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;
|
|
||||||
|
|
||||||
|
|
||||||
# Permanent redirect z zachowaniem ścieżki
|
|
||||||
location / {
|
|
||||||
# Ograniczenie liczby żądań
|
|
||||||
limit_req zone=ip_limit burst=20 nodelay;
|
|
||||||
proxy_pass http://arti24-container:3131;
|
|
||||||
|
|
||||||
# 🔹 Doocelowa domena
|
|
||||||
proxy_set_header X-Redirect-Domain katb.pl;
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -8,11 +8,17 @@ server {
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
|
allow all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
if ($redirect_https = "") {
|
||||||
}
|
return 444;
|
||||||
|
}
|
||||||
|
return 301 $redirect_https$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name katb.pl;
|
server_name katb.pl www.katb.pl;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
# Redirect z HTTPS na nową domenę kopama.com.pl
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name kopama.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;
|
|
||||||
|
|
||||||
# Permanent redirect z zachowaniem ścieżki
|
|
||||||
location / {
|
|
||||||
# Ograniczenie liczby żądań
|
|
||||||
limit_req zone=ip_limit burst=20 nodelay;
|
|
||||||
proxy_pass http://arti24-container:3131;
|
|
||||||
|
|
||||||
# 🔹 Doocelowa domena
|
|
||||||
proxy_set_header X-Redirect-Domain kursy.kopama.pl;
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# plecianki.pl
|
# plecianki.pl
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name plecianki.pl;
|
server_name plecianki.pl www.plecianki.pl;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue