Scoring and conf
This commit is contained in:
parent
f46160edf6
commit
de8ca75659
@ -0,0 +1,17 @@
|
||||
# Scoring
|
||||
|
||||
## SSL Labs
|
||||

|
||||
|
||||
## Mozilla Observatory
|
||||

|
||||
|
||||
# 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.
|
||||
53
element/element.theschricks.com.conf
Normal file
53
element/element.theschricks.com.conf
Normal 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;
|
||||
}
|
||||
BIN
element/scoring/Mozilla_Observatory.png
Normal file
BIN
element/scoring/Mozilla_Observatory.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
BIN
element/scoring/SSL_Labs.png
Normal file
BIN
element/scoring/SSL_Labs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Loading…
x
Reference in New Issue
Block a user