This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/nginx/conf.d/http.conf

36 lines
862 B
Plaintext
Raw Normal View History

2021-01-04 14:27:32 +01:00
http {
# SSL CONFIGURATION
# Key locations
2021-01-05 13:26:59 +01:00
ssl_certificate /etc/letsencrypt/live/your.domain.here/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/your.domain.here/privkey.pem;
2021-01-04 14:27:32 +01:00
# Allowed protocols
ssl_protocols TLSv1.2;
# Allowed cyphers
# ssl_ciphers EECDH+CHACHA20:EECDH+AES;
# Cache settings
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# Still gotta figure out what these do
# ssl_session_tickets off;
# ssl_prefer_server_ciphers on;
# ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1;
2021-01-05 16:21:11 +01:00
# Auto-route all HTTP requests to HTTPS
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host:443$request_uri;
}
2021-01-04 14:27:32 +01:00
# LOAD SITES
2021-01-05 13:26:59 +01:00
include sites_enabled/*.conf;
2021-01-04 14:27:32 +01:00
}