Compare commits
No commits in common. "44a1bc9e4ab6e1ed48a9add23db7d9a6b1455412" and "1847988e385fdde9e591d3798732c1589eb7f7a3" have entirely different histories.
44a1bc9e4a
...
1847988e38
2 changed files with 1 additions and 65 deletions
|
@ -1,63 +0,0 @@
|
||||||
# HTTP to HTTPS redirect
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name systemsobscure.blog www.systemsobscure.blog;
|
|
||||||
return 301 https://$server_name$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Main HTTPS server
|
|
||||||
server {
|
|
||||||
listen 443 ssl http2;
|
|
||||||
server_name systemsobscure.blog www.systemsobscure.blog;
|
|
||||||
|
|
||||||
# SSL certificate paths
|
|
||||||
ssl_certificate /etc/letsencrypt/live/systemsobscure.net/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/systemsobscure.net/privkey.pem;
|
|
||||||
|
|
||||||
# SSL security hardening
|
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
|
||||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384;
|
|
||||||
ssl_prefer_server_ciphers off;
|
|
||||||
ssl_session_cache shared:SSL:10m;
|
|
||||||
ssl_session_timeout 10m;
|
|
||||||
|
|
||||||
# Security headers
|
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
||||||
|
|
||||||
# Document root
|
|
||||||
root /var/www/systemsobscure.blog;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
# Enable gzip compression
|
|
||||||
gzip on;
|
|
||||||
gzip_vary on;
|
|
||||||
gzip_min_length 1024;
|
|
||||||
gzip_types
|
|
||||||
text/plain
|
|
||||||
text/css
|
|
||||||
text/xml
|
|
||||||
text/javascript
|
|
||||||
application/javascript
|
|
||||||
application/xml+rss
|
|
||||||
application/json;
|
|
||||||
|
|
||||||
# Handle client-side routing (SPA fallback)
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Cache static assets for better performance
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
|
||||||
expires 1y;
|
|
||||||
add_header Cache-Control "public, immutable";
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Block access to hidden files (.env, .git, etc)
|
|
||||||
location ~ /\. {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -19,8 +19,7 @@ sudo certbot certonly --standalone \
|
||||||
-d forgejo.systemsobscure.net \
|
-d forgejo.systemsobscure.net \
|
||||||
-d wakapi.systemsobscure.net \
|
-d wakapi.systemsobscure.net \
|
||||||
-d linkding.systemsobscure.net \
|
-d linkding.systemsobscure.net \
|
||||||
-d miniflux.systemsobscure.net \
|
-d miniflux.systemsobscure.net
|
||||||
-d systemsobscure.blog
|
|
||||||
|
|
||||||
echo "INFO Confirming certificate creation..."
|
echo "INFO Confirming certificate creation..."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue