mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
20 lines
894 B
Nginx Configuration File
20 lines
894 B
Nginx Configuration File
server {
|
|
listen 8080;
|
|
listen [::]:8080;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
add_header X-Frame-Options SAMEORIGIN;
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin;
|
|
add_header X-Permitted-Cross-Domain-Policies none;
|
|
add_header Cross-Origin-Resource-Policy same-site;
|
|
add_header Cross-Origin-Opener-Policy same-origin;
|
|
#add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' http: https: blob:; style-src 'self' 'unsafe-inline' https: http:; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self' https: http:; object-src 'none'; base-uri 'self'; form-action 'self';";
|
|
location / {
|
|
rewrite ^/it-tools/(.*) /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|