21 lines
472 B
SYSTEMD
21 lines
472 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=BottleCRM SvelteKit Frontend Service
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=ubuntu
|
||
|
|
WorkingDirectory=/home/ubuntu/crmfrontend
|
||
|
|
Environment=NODE_ENV=production
|
||
|
|
Environment=PORT=3000
|
||
|
|
Environment=HOST=127.0.0.1
|
||
|
|
Environment=PUBLIC_DJANGO_API_URL=https://betaapicsa.tradhox.com
|
||
|
|
Environment=ADDRESS_HEADER=X-Forwarded-For
|
||
|
|
Environment=XFF_DEPTH=1
|
||
|
|
ExecStart=/usr/bin/node build/index.js
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|