generated from nhcarrigan/template
refactor: restructure nginx config into per-app files #1
@@ -0,0 +1,24 @@
|
||||
# Elysium Vite SPA and Hono API backend.
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name elysium.nhcarrigan.com;
|
||||
ssl_certificate /etc/letsencrypt/live/elysium.nhcarrigan.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/elysium.nhcarrigan.com/privkey.pem;
|
||||
|
||||
root /home/naomi/elysium/apps/web/dist;
|
||||
|
||||
location /api/ {
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:3898;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location ~* \.(js|css)$ {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../sites-available/elysium.conf
|
||||
Reference in New Issue
Block a user