From 60ad75ecb03a5e9eaf011361b80d05579833954d Mon Sep 17 00:00:00 2001 From: eneller Date: Fri, 4 Apr 2025 23:18:15 +0000 Subject: [PATCH] feat: nginx config --- nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..b24c30d --- /dev/null +++ b/nginx.conf @@ -0,0 +1,15 @@ +server { + listen 80; + server_name epub2go.example.org; + access_log /var/log/nginx/epub2go.log; + + location /static { + alias /www/epub2go; + } + + location / { + proxy_pass http://127.0.0.1:50000; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +} +}