Created
October 23, 2023 19:31
-
-
Save anaxita/861f34fb62afaa28696c6e63f7d62fb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name n-bot.anaxita.ru; | |
root /www/n-bot.anaxita.ru; | |
listen 443 ssl; | |
location / { | |
try_files $uri /index.html; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
access_log off; | |
gzip_static on; | |
gzip_comp_level 5; | |
expires 1M; | |
add_header Cache-Control private; | |
} | |
error_page 404 /index.html; | |
ssl_certificate /etc/letsencrypt/live/n-bot.anaxita.ru/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/n-bot.anaxita.ru/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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment