updated deploymentfiles
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Nginx reverse proxy configuration for stock-data-backend
|
||||
# Domain: signal.thiessen.io → localhost:8000 (uvicorn)
|
||||
# Domain: signal.thiessen.io → localhost:8998 (uvicorn)
|
||||
#
|
||||
# Installation:
|
||||
# sudo cp deploy/nginx.conf /etc/nginx/sites-available/stock-data-backend
|
||||
@@ -19,7 +19,7 @@ server {
|
||||
# return 301 https://$host$request_uri;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_pass http://127.0.0.1:8998;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# systemd service for stock-data-backend
|
||||
# systemd service for signalplatform
|
||||
#
|
||||
# Installation:
|
||||
# sudo cp deploy/stock-data-backend.service /etc/systemd/system/
|
||||
# sudo cp deploy/signalplatform.service /etc/systemd/system/
|
||||
# sudo systemctl daemon-reload
|
||||
# sudo systemctl enable stock-data-backend
|
||||
# sudo systemctl start stock-data-backend
|
||||
# sudo systemctl enable signalplatform
|
||||
# sudo systemctl start signalplatform
|
||||
#
|
||||
# Customize:
|
||||
# - User/Group: create with `sudo useradd -r -s /usr/sbin/nologin stockdata`
|
||||
@@ -17,11 +17,11 @@ After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=stockdata
|
||||
Group=stockdata
|
||||
WorkingDirectory=/opt/stock-data-backend
|
||||
EnvironmentFile=/opt/stock-data-backend/.env
|
||||
ExecStart=/opt/stock-data-backend/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 1
|
||||
User=deploy
|
||||
Group=deploy
|
||||
WorkingDirectory=/opt/signalplatform
|
||||
EnvironmentFile=/opt/signalplatform/.env
|
||||
ExecStart=/opt/signalplatform/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8998 --workers 1
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
Reference in New Issue
Block a user