23 lines
565 B
Plaintext
23 lines
565 B
Plaintext
|
|
# LandveX Admin v2 — Nginx config
|
||
|
|
# Lägg till i /etc/nginx/conf.d/ eller inkludera
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name admin.landvex.com;
|
||
|
|
|
||
|
|
# API — proxy till admin-backend
|
||
|
|
location /api/ {
|
||
|
|
proxy_pass http://localhost:3456;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
}
|
||
|
|
|
||
|
|
# Static files — serve UI
|
||
|
|
location / {
|
||
|
|
root /home/bernt/.openclaw/workspace/landvex-admin-v2/ui;
|
||
|
|
index index.html;
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
}
|