36 lines
1.6 KiB
Plaintext
Executable File
36 lines
1.6 KiB
Plaintext
Executable File
server {
|
||
listen 443 ssl http2;
|
||
listen [::]:443 ssl http2;
|
||
ssl_certificate $JC_CERT/fullchain.pem;
|
||
ssl_certificate_key $JC_CERT/privkey.pem;
|
||
server_name grapes.chahut.jean-cloud.net;
|
||
root $HTTP_DIR;
|
||
|
||
# Security headers
|
||
# We can create a file with the base security headers and include it.
|
||
# Will it be possible to overload them then ?
|
||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||
#add_header Content-Security-Policy "default-src 'self' https://cdnjs.cloudflare.com/ajax/libs/font-awesome/ ;frame-ancestors 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/font-awesome/ ; img-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/font-awesome/ ; base-uri 'self'; form-action 'self';" always;
|
||
add_header X-Content-Type-Options "nosniff";
|
||
add_header X-Frame-Options SAMEORIGIN always;
|
||
add_header X-XSS-Protection "1; mode=block" always;
|
||
#add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||
add_header Permissions-Policy "geolocation='none';midi='none';notifications='none';push='none';sync-xhr='https://mailer.jean-cloud.net';microphone='none';camera='none';magnetometer='none';gyroscope='none';speaker='self';vibrate='none';fullscreen='self';payment='none';";
|
||
|
||
auth_basic "Mot de passe !";
|
||
auth_basic_user_file $DATA_DIR/pass.txt;
|
||
|
||
location / {
|
||
index index.html;
|
||
try_files $uri $uri/ =404;
|
||
}
|
||
|
||
location /projects {
|
||
proxy_set_header Host $http_host;
|
||
proxy_set_header X-Forwarded-Proto https;
|
||
proxy_pass http://$NET.100:3000;
|
||
proxy_redirect off;
|
||
|
||
}
|
||
}
|