deployment files and script

This commit is contained in:
Shivering Ocelot committed 2026-08-30 17:33:31 -05:00
1 parent 6c5140fb92
commit 3b2b3507e5
4 files changed
+141

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export OPENAI_API_KEY=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
export REPLICATE_API_KEY=r8_J1lnphqfZNUtK9CIh81SE4uHWWKJuvR3tr8S2
export OPENROUTER_API_KEY=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
export HORDE_DATA_DIR=/var/horde/hub-data
echo Starting Horde Server
/var/horde/hub/.venv/bin/python3 /var/horde/hub/backend/src/app.py
+29
View File
@@ -0,0 +1,29 @@
# Only describe the http server, certbot will install https for us
server {
listen 80;
listen [::]:80;
server_name hub.hordelab.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name hub.hordelab.com;
ssl_certificate /etc/letsencrypt/live/hub.hordelab.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hub.hordelab.com/privkey.pem;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
# Websocket support
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Horde Hub
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=bash /var/horde/launch-hub.sh
[Install]
WantedBy=multi-user.target