scripts/nginx_config_maker/prod/lxc_containers/pleroma

33 lines
844 B
Plaintext
Raw Normal View History

2023-06-15 19:42:12 +02:00
server {
if ($host = social.cipherbliss.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name social.cipherbliss.com;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name social.cipherbliss.com;
# Use Mozilla's guidelines for SSL/TLS settings
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
# NOTE: some settings below might be redundant
ssl_certificate /etc/letsencrypt/live/social.cipherbliss.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/social.cipherbliss.com/privkey.pem; # managed by Certbot
# Path to the root of your installation
root /home/www/tykayn/pleroma;
}