do2
Matthew 2025-03-22 00:42:38 -04:00
parent 8b745bd444
commit 52fabbc860
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
2 changed files with 9 additions and 2 deletions

View File

@ -1,10 +1,17 @@
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name libraryofcode.dev;
server_name libraryofcode.dev www.libraryofcode.dev;
ssl_certificate /etc/letsencrypt/live/libraryofcode.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/libraryofcode.dev/privkey.pem;
#ssl_certificate /etc/nginx/ssl/org.chain.crt;
#ssl_certificate_key /etc/nginx/ssl/org.key.pem;
root /opt/libraryofcode.dev-frontend;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}

View File

@ -22,7 +22,7 @@ http {
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
#more_set_headers 'Server: LIBRARY OF CODE SP-US INTERNAL SVCS (nginx) [https://loc.sh/]';
more_set_headers 'Server: LIBRARY OF CODE INC INTERNAL SVCS (nginx) [https://loc.sh/]';
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
resolver 1.1.1.1 63.141.252.133;