Scoring and conf

This commit is contained in:
Noah L. Schrick 2022-06-24 16:42:47 -05:00
parent f46160edf6
commit de8ca75659
4 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Scoring
## SSL Labs
![alt text](./scoring/SSL_Labs.png?raw=true)
## Mozilla Observatory
![alt text](./scoring/Mozilla_Observatory.png?raw=true)
# Additional Score Commentary:
## Mozilla Observatory
Current CSP requires the use of unsafe-eval due to WASM.
The relevant issue can be found at: https://github.com/vector-im/element-web/issues/12262, and has a relevant issue in the dotnet development found at: https://github.com/dotnet/aspnetcore/issues/37787
This scores a -10 in Mozilla Observatory.

View File

@ -0,0 +1,53 @@
#HTTPS
server {
root /var/www/element.theschricks.com/element-latest;
index index.html;
server_name element.theschricks.com;
location / {
try_files $uri $uri/ =404;
}
client_max_body_size 512m;
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/element.theschricks.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/element.theschricks.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
add_header X-Robots-Tag none;
add_header X-Frame-Options "SAMEORIGIN";
add_header Referrer-Policy "strict-origin";
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()";
# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
#return 301 https://$host$request_uri;
}
#HTTP
server {
listen 80;
listen [::]:80;
server_name element.theschricks.com www.element.theschricks.com;
return 301 https://$host$request_uri;
}
#Redirect www
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.element.theschricks.com;
return 301 https://$host$request_uri;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB