mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
Include default /etc/nginx/mime.types --------- Co-authored-by: sharevb <sharevb@gmail.com>
27 lines
1.0 KiB
Nginx Configuration File
27 lines
1.0 KiB
Nginx Configuration File
server {
|
|
listen ${PORT};
|
|
listen [::]:${PORT};
|
|
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 Cross-Origin-Embedder-Policy require-corp;
|
|
#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';";
|
|
|
|
include /etc/nginx/mime.types;
|
|
types {
|
|
application/javascript js mjs;
|
|
}
|
|
|
|
location / {
|
|
rewrite ^/it-tools/(.*) /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|