generated from nhcarrigan/template
feat: add elysium.nhcarrigan.com nginx config
✨ This issue was created with help from Hikari~ 🌸
This commit is contained in:
@@ -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