Scoring, README, and conf

This commit is contained in:
Noah L. Schrick 2022-06-27 10:46:26 -05:00
parent 0fdbccfed3
commit a6547f9136
4 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# 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-inline for style-src.
The relevant issue can be found at: https://github.com/nextcloud/server/issues/1185
and at: https://help.nextcloud.com/t/content-security-policy-config/28146/2

View File

@ -0,0 +1,53 @@
server {
server_name nextcloud.theschricks.com;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://pi2;
}
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
client_max_body_size 512m;
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()";
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/nextcloud.theschricks.com-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/nextcloud.theschricks.com-0001/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
# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
}
#HTTP
server {
listen 80;
listen [::]:80;
server_name nextcloud.theschricks.com www.nextcloud.theschricks.com;
return 301 https://$host$request_uri;
}
#Redirect www
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.nextcloud.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: 56 KiB