aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/nginx.conf
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-11-02 18:37:21 +0900
committernsfisis <nsfisis@gmail.com>2025-11-02 18:44:10 +0900
commite9c287f2a8dfc477f42efbae69a667b341f21982 (patch)
tree67057453d0f64a62aa43f03435d0dabbf647c7cb /services/nuldoc/nginx.conf
parent57315c52be96d2a2c013f0cfb0de5429980e301a (diff)
downloadnsfisis.dev-e9c287f2a8dfc477f42efbae69a667b341f21982.tar.gz
nsfisis.dev-e9c287f2a8dfc477f42efbae69a667b341f21982.tar.zst
nsfisis.dev-e9c287f2a8dfc477f42efbae69a667b341f21982.zip
feat(nuldoc): prepare site migration
Diffstat (limited to 'services/nuldoc/nginx.conf')
-rw-r--r--services/nuldoc/nginx.conf14
1 files changed, 11 insertions, 3 deletions
diff --git a/services/nuldoc/nginx.conf b/services/nuldoc/nginx.conf
index eb1d913..311f600 100644
--- a/services/nuldoc/nginx.conf
+++ b/services/nuldoc/nginx.conf
@@ -1,9 +1,17 @@
+map $http_x_forwarded_host $docroot_path {
+ hostnames;
+ default /public/_;
+ about.* /public/about;
+ blog.* /public/blog;
+ slides.* /public/slides;
+}
+
server {
- listen 8001 default;
- listen [::]:8001;
+ listen 80 default;
+ listen [::]:80;
location / {
- root /public;
+ root $docroot_path;
location ~* ^.*/atom\.xml$ {
types { }