updated deploymentfiles
Some checks failed
Deploy / lint (push) Successful in 5s
Deploy / test (push) Successful in 28s
Deploy / deploy (push) Failing after 5s

This commit is contained in:
2026-03-03 20:05:04 +01:00
parent 12788a3946
commit 0cdf51bfc6
2 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
# Nginx reverse proxy configuration for stock-data-backend # Nginx reverse proxy configuration for stock-data-backend
# Domain: signal.thiessen.io → localhost:8000 (uvicorn) # Domain: signal.thiessen.io → localhost:8998 (uvicorn)
# #
# Installation: # Installation:
# sudo cp deploy/nginx.conf /etc/nginx/sites-available/stock-data-backend # sudo cp deploy/nginx.conf /etc/nginx/sites-available/stock-data-backend
@@ -19,7 +19,7 @@ server {
# return 301 https://$host$request_uri; # return 301 https://$host$request_uri;
location / { 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 Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@@ -1,10 +1,10 @@
# systemd service for stock-data-backend # systemd service for signalplatform
# #
# Installation: # 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 daemon-reload
# sudo systemctl enable stock-data-backend # sudo systemctl enable signalplatform
# sudo systemctl start stock-data-backend # sudo systemctl start signalplatform
# #
# Customize: # Customize:
# - User/Group: create with `sudo useradd -r -s /usr/sbin/nologin stockdata` # - User/Group: create with `sudo useradd -r -s /usr/sbin/nologin stockdata`
@@ -17,11 +17,11 @@ After=network.target postgresql.service
[Service] [Service]
Type=exec Type=exec
User=stockdata User=deploy
Group=stockdata Group=deploy
WorkingDirectory=/opt/stock-data-backend WorkingDirectory=/opt/signalplatform
EnvironmentFile=/opt/stock-data-backend/.env EnvironmentFile=/opt/signalplatform/.env
ExecStart=/opt/stock-data-backend/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 1 ExecStart=/opt/signalplatform/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8998 --workers 1
Restart=always Restart=always
RestartSec=5 RestartSec=5