Removed proxy Dockerfile, updated docker-compose.yml
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,42 +1,35 @@
|
||||
worker_processes 1;
|
||||
# HTTPS server configuration
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name translator.dhbw.flokaiser.com;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
ssl_certificate /etc/letsencrypt/live/test-name/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/test-name/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/test-name/chain.pem;
|
||||
|
||||
location / {
|
||||
# Forward requests to port 80
|
||||
proxy_pass http://frontend:80/;
|
||||
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 https;
|
||||
}
|
||||
|
||||
location /api {
|
||||
# Forward requests to port 80
|
||||
proxy_pass http://backend:8080/;
|
||||
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 https;
|
||||
}
|
||||
}
|
||||
|
||||
http {
|
||||
# HTTPS server configuration
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name translator.dhbw.flokaiser.com;
|
||||
# HTTP server configuration
|
||||
server {
|
||||
listen 80;
|
||||
server_name translator.dhbw.flokaiser.com;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/cert.pem;
|
||||
ssl_certificate_key /etc/nginx/certs/key.pem;
|
||||
|
||||
location / {
|
||||
# Forward requests to port 80
|
||||
proxy_pass http://frontend:80/;
|
||||
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 https;
|
||||
}
|
||||
|
||||
location /api {
|
||||
# Forward requests to port 80
|
||||
proxy_pass http://backend:8080/;
|
||||
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 https;
|
||||
}
|
||||
}
|
||||
|
||||
# HTTP server configuration
|
||||
server {
|
||||
listen 80;
|
||||
server_name translator.dhbw.flokaiser.com;
|
||||
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
}
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user