🚀 Deployment-Konfiguration hinzugefügt
- docker-compose.yml (DB + Backend + Frontend) - Nginx Reverse Proxy Config - Deployment Script Ports: - PostgreSQL: 5434 - Backend: 8004 - Frontend: 3006
This commit is contained in:
55
deploy/nginx/secu.conf
Normal file
55
deploy/nginx/secu.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user