keycloak-demo-frontend/default.conf

24 lines
712 B
Plaintext

server {
listen 8080;
server_name localhost;
port_in_redirect off;
absolute_redirect off;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
#add_header Content-Security-Policy "default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'self'";
add_header X-Frame-Options SAMEORIGIN;
add_header Cache-Control no-cache;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection '1; mode=block';
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}