Update docs.

This commit is contained in:
yuanhau 2025-05-27 09:36:44 +08:00
parent a4ccad0989
commit 7057f8293d
7 changed files with 37 additions and 15 deletions

View file

@ -1,14 +1,27 @@
# Run :%s/news.yuanhau.com/your.domain.here/ in vim to replace news.yuanhau.com to your domain.
# Caddy is currently not supported.
# Before getting the SSL cert for your website comment the the few with the lines of #commentbeforessl
#
#
#
# If you want to change the log dir use :%s/news_analyze/{your-file-here}
#
#
#
#
#
#
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/news.yuanhau.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/news.yuanhau.com/privkey.pem;
listen 443 ssl; #commentbeforessl
ssl_certificate /etc/letsencrypt/live/news.yuanhau.com/fullchain.pem; #commentbeforessl
ssl_certificate_key /etc/letsencrypt/live/news.yuanhau.com/privkey.pem; #commentbeforessl
server_name news.yuanhau.com;
access_log /var/log/nginx/news_analyze.access.log;
error_log /var/log/nginx/news_analyze.error.log;
location / {
proxy_pass http://127.0.0.1:36694;
proxy_pass http://127.0.0.1:36694; # Traefik port.
proxy_set_header X-real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
@ -21,4 +34,4 @@ server {
proxy_buffering off;
proxy_cache off;
}
}
}