[ false, "arti24.eu", "www", "api"]

This commit is contained in:
Artur 2024-10-06 21:36:17 +02:00
parent 7bef889c72
commit 883be8388e
3 changed files with 30 additions and 1 deletions

View File

@ -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){

View File

@ -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;
}
}