From f0596bc1c7843fb031b1a99c0896265334037afc Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 6 Feb 2025 10:38:59 +0800 Subject: Update --- nginx/Makefile | 1 + nginx/sites-available/vps | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'nginx') diff --git a/nginx/Makefile b/nginx/Makefile index a5697ef..8245ae7 100644 --- a/nginx/Makefile +++ b/nginx/Makefile @@ -9,6 +9,7 @@ all: src /home/pham/git/ngx-fancyindex --prefix=/etc/nginx \ --sbin-path=/usr/bin/nginx \ --conf-path=/etc/nginx/nginx.conf \ + --pid-path=/run/nginx.pid \ --with-http_ssl_module \ --with-http_dav_module \ --with-http_image_filter_module \ diff --git a/nginx/sites-available/vps b/nginx/sites-available/vps index c5a2fb9..0892b88 100644 --- a/nginx/sites-available/vps +++ b/nginx/sites-available/vps @@ -205,7 +205,8 @@ server { } location ^~ /osm { - alias /home/pham/public/osm/; + #alias /home/pham/public/osm/; + alias /srv/osm/dist/; autoindex on; } @@ -300,6 +301,18 @@ server { #} } +# services for OSM +server { + server_name osm.topo.tw; + + listen 80; + #listen 443 ssl; + #ssl_certificate /etc/nginx/ssl/git.topo.tw/fullchain.cer; + #ssl_certificate_key /etc/nginx/ssl/git.topo.tw/git.topo.tw.key; + + root /srv/osm; +} + # git server server { server_name git.topo.tw; -- cgit v1.2.3-70-g09d2