aboutsummaryrefslogtreecommitdiffstats
path: root/server/nginx.template
diff options
context:
space:
mode:
Diffstat (limited to 'server/nginx.template')
-rw-r--r--server/nginx.template55
1 files changed, 0 insertions, 55 deletions
diff --git a/server/nginx.template b/server/nginx.template
deleted file mode 100644
index e3dd750..0000000
--- a/server/nginx.template
+++ /dev/null
@@ -1,55 +0,0 @@
-# if run in local docker container add this resolver for the DNS to connect to Keycloak
-resolver ${CLUSTER_NAMESERVER_IP};
-
-server {
- listen ${NGINX_PORT};
-
- location / {
- root /usr/share/nginx/html;
- index index.html;
- try_files $uri $uri/ /index.html =404;
- }
-
- location /api/ {
- set $upstream ${BFF_URL};
- rewrite /api/(.*) /$1 break;
- add_header Access-Control-Allow-Origin *;
- proxy_pass $upstream/$1$is_args$args;
- 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-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_http_version 1.1;
- }
-
- location /auth/ {
- set $upstream ${KEYCLOAK_INTERNAL_URL};
- rewrite /auth/(.*) /$1 break;
- add_header Access-Control-Allow-Origin *;
- proxy_pass $upstream/$1$is_args$args;
- proxy_http_version 1.1;
- 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-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
-}
-
-##
-# Gzip Settings
-##
-gzip on;
-gzip_vary on;
-gzip_proxied any;
-gzip_min_length 1100;
-gzip_comp_level 6;
-gzip_buffers 16 8k;
-gzip_http_version 1.1;
-gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
-