diff --git a/Projects/kompose/docs/compose.yaml b/Projects/kompose/docs/compose.yaml index ccd7f274..a8933aa0 100644 --- a/Projects/kompose/docs/compose.yaml +++ b/Projects/kompose/docs/compose.yaml @@ -16,9 +16,9 @@ services: - 'traefik.enable=true' - 'traefik.http.middlewares.$COMPOSE_PROJECT_NAME-api-redirect-web-secure.redirectscheme.scheme=https' - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web.middlewares=$COMPOSE_PROJECT_NAME-api-redirect-web-secure' - - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web.rule=Host(`$TRAEFIK_HOST`) && PathPrefix(`/$COMPOSE_PROJECT_NAME`)' + - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web.rule=Host(`$TRAEFIK_HOST`)' - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web.entrypoints=web' - - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web-secure.rule=Host(`$TRAEFIK_HOST`) && PathPrefix(`/$COMPOSE_PROJECT_NAME`)' + - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web-secure.rule=Host(`$TRAEFIK_HOST`)' - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web-secure.tls.certresolver=resolver' - 'traefik.http.routers.$COMPOSE_PROJECT_NAME-api-web-secure.entrypoints=web-secure' - 'traefik.http.middlewares.$COMPOSE_PROJECT_NAME-api-web-secure-compress.compress=true' diff --git a/Projects/kompose/docs/nginx.conf b/Projects/kompose/docs/nginx.conf index e26db26e..0f69439f 100644 --- a/Projects/kompose/docs/nginx.conf +++ b/Projects/kompose/docs/nginx.conf @@ -29,18 +29,18 @@ http { gzip_vary on; gzip_proxied any; gzip_comp_level 6; - gzip_types text/plain text/css text/xml text/javascript - application/json application/javascript application/xml+rss - application/rss+xml font/truetype font/opentype + gzip_types text/plain text/css text/xml text/javascript + application/json application/javascript application/xml+rss + application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_disable "msie6"; # Brotli compression (if available) brotli on; brotli_comp_level 6; - brotli_types text/plain text/css text/xml text/javascript - application/json application/javascript application/xml+rss - application/rss+xml font/truetype font/opentype + brotli_types text/plain text/css text/xml text/javascript + application/json application/javascript application/xml+rss + application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; server { @@ -62,7 +62,7 @@ http { } # Handle SPA routing - location / { + location /kompose { try_files $uri $uri/ /index.html; }