2024-04-25 10:48:25 +02:00
|
|
|
server {
|
|
|
|
listen 8080 default_server;
|
|
|
|
listen [::]:8080 default_server;
|
|
|
|
server_name "";
|
|
|
|
return 444;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2024-04-25 16:59:42 +02:00
|
|
|
set $app_host $APP_HOST;
|
|
|
|
set $app_port $APP_PORT;
|
2024-04-25 10:48:25 +02:00
|
|
|
listen 8080;
|
|
|
|
server_name ${APP_HOST}${APP_PORT};
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-29 16:55:53 +02:00
|
|
|
server {
|
|
|
|
set $app_host $APP_HOST;
|
|
|
|
set $app_port $APP_PORT;
|
|
|
|
listen 8081;
|
|
|
|
server_name ${APP_HOST}${APP_PORT};
|
|
|
|
proxy_pass_header Server;
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-04-29 16:55:53 +02:00
|
|
|
# add_header X-XSS-Protection "1; mode=block" always;
|
|
|
|
# add_header X-Content-Type-Options nosniff;
|
|
|
|
# add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
|
|
|
# add_header Referrer-Policy 'strict-origin' always;
|
|
|
|
# add_header Feature-Policy "usb 'none'; xr-spatial-tracking 'none'" always;
|
|
|
|
# add_header Permissions-Policy "geolocation=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=()" always;
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-04-29 16:55:53 +02:00
|
|
|
location / {
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
|
|
|
proxy_pass http://opendmp.frontend:8080;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
proxy_redirect http://opendmp.frontend:8080 http://${APP_HOST}${APP_PORT};
|
|
|
|
}
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
|
|
|
proxy_pass http://opendmp.backend:8080;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
proxy_redirect http://opendmp.backend:8080 http://${APP_HOST}${APP_PORT}/api;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /api/notification/ {
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
|
|
|
proxy_pass http://opendmp.notification:8080;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
proxy_redirect http://opendmp.notification:8080 http://${APP_HOST}${APP_PORT}/api/notification;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /api/annotation/ {
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
|
|
|
proxy_pass http://opendmp.annotation:8080;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
proxy_redirect http://opendmp.annotation:8080 http://${APP_HOST}${APP_PORT}/api/annotation;
|
|
|
|
}
|
|
|
|
}
|
2024-04-25 10:48:25 +02:00
|
|
|
|
2024-04-25 16:59:42 +02:00
|
|
|
server {
|
|
|
|
set $ms_host $MS_HOST;
|
|
|
|
set $ms_port $MS_PORT;
|
|
|
|
listen 8080;
|
|
|
|
server_name ${MS_HOST}${MS_PORT};
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
2024-04-25 10:48:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2024-04-25 16:59:42 +02:00
|
|
|
set $ms_host $MS_HOST;
|
|
|
|
set $ms_port $MS_PORT;
|
2024-04-26 12:42:55 +02:00
|
|
|
listen 8082;
|
2024-04-25 10:48:25 +02:00
|
|
|
server_name ${MS_HOST};
|
|
|
|
proxy_pass_header Server;
|
|
|
|
|
2024-04-26 12:42:55 +02:00
|
|
|
# add_header X-XSS-Protection "1; mode=block" always;
|
|
|
|
# add_header X-Content-Type-Options nosniff;
|
|
|
|
# add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
|
|
|
# add_header Referrer-Policy 'strict-origin' always;
|
|
|
|
# add_header Feature-Policy "usb 'none'; xr-spatial-tracking 'none'" always;
|
|
|
|
# add_header Permissions-Policy "geolocation=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=()" always;
|
2024-04-25 10:48:25 +02:00
|
|
|
|
|
|
|
location /keycloak/ {
|
|
|
|
|
|
|
|
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_set_header X-Forwarded-Port $server_port;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
|
|
|
|
|
|
# Fix the “It appears that your reverse proxy set up is broken" error.
|
2024-04-26 12:42:55 +02:00
|
|
|
proxy_pass http://opendmp.keycloak:8080;
|
2024-04-25 10:48:25 +02:00
|
|
|
proxy_read_timeout 90;
|
|
|
|
|
2024-04-26 12:42:55 +02:00
|
|
|
proxy_redirect http://opendmp.keycloak:8080 http://${MS_HOST}${MS_PORT}/keycloak;
|
2024-04-25 10:48:25 +02:00
|
|
|
}
|
|
|
|
}
|