- docker-compose.yml (DB + Backend + Frontend) - Nginx Reverse Proxy Config - Deployment Script Ports: - PostgreSQL: 5434 - Backend: 8004 - Frontend: 3006
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
# SeCu Frontend
|
|
server {
|
|
listen 80;
|
|
server_name secu.kronos-soulution.de;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name secu.kronos-soulution.de;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/secu.kronos-soulution.de/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/secu.kronos-soulution.de/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:3006;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
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_cache_bypass $http_upgrade;
|
|
}
|
|
}
|
|
|
|
# SeCu API
|
|
server {
|
|
listen 80;
|
|
server_name api.secu.kronos-soulution.de;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name api.secu.kronos-soulution.de;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/api.secu.kronos-soulution.de/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/api.secu.kronos-soulution.de/privkey.pem;
|
|
|
|
client_max_body_size 10M;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8004;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
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_cache_bypass $http_upgrade;
|
|
}
|
|
}
|