Compare commits

..

No commits in common. "e041e4c490f260557d242d594542774a63c7b071" and "450be7a336a2dfb90169af950de285258d46cc4c" have entirely different histories.

2 changed files with 2 additions and 21 deletions

View File

@ -4,8 +4,6 @@ services:
image: "$IMAGEAPP"
restart: unless-stopped
ports:
- "8080:8080"
environment:
- ELEMENT_WEB_PORT=8080
- "8080:80"
volumes:
- ./config/config.json:/app/config.json:ro

View File

@ -5,20 +5,6 @@ metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.org/location-snippets:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers X-Frame-Options SAMEORIGIN;
more_set_headers X-Content-Type-Options nosniff;
more_set_headers X-XSS-Protection "1; mode=block";
more_set_headers Content-Security-Policy "frame-ancestors 'self'";
nginx.ingress.kubernetes.io/server-snippet: |
if ($request_uri = "/") {
more_set_headers "Cache-Control: no-cache";
}
if ($request_uri ~* "^/(config.*\.json|i18n|home|sites|index\.html)$") {
more_set_headers "Cache-Control: no-cache, no-store, must-revalidate";
}
spec:
ingressClassName: nginx
tls:
@ -72,10 +58,7 @@ spec:
image: "$IMAGEAPP"
ports:
- name: http
containerPort: 8080
env:
- name: ELEMENT_WEB_PORT
value: 8080
containerPort: 80
volumeMounts:
- name: config
mountPath: /app/config.json