summaryrefslogtreecommitdiffstats
path: root/push.sh
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-10-15 15:12:11 -0700
committeryum <yum.food.vr@gmail.com>2025-10-28 17:19:37 -0700
commitcf2724be776925338c0e5b45638eab140c80b3d5 (patch)
treec382c59e101f6737d9a336c71f4c0e922f50345d /push.sh
parent8caabef3412f9368888bc50eacda1fac3f08b039 (diff)
tighten up configs
Diffstat (limited to 'push.sh')
-rwxr-xr-xpush.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/push.sh b/push.sh
index cba5a07..e19f2c4 100755
--- a/push.sh
+++ b/push.sh
@@ -5,7 +5,7 @@ HOST="yummers.dev"
DEPLOY_DIR="~/obsproxy"
echo "Creating deploy directory on remote host..."
-ssh "$HOST" "mkdir -p $DEPLOY_DIR/etc/systemd/system $DEPLOY_DIR/etc/nginx/modules-available $DEPLOY_DIR/etc/nginx/sites-available $DEPLOY_DIR/opt/obsproxy"
+ssh "$HOST" "mkdir -p $DEPLOY_DIR/etc/systemd/system $DEPLOY_DIR/etc/nginx/modules-available $DEPLOY_DIR/etc/nginx/sites-available $DEPLOY_DIR/etc/nginx/snippets $DEPLOY_DIR/opt/obsproxy"
echo "Copying files to remote host..."
scp -r * "$HOST:$DEPLOY_DIR/"
@@ -36,6 +36,7 @@ sudo cp etc/nginx/modules-available/rtmp.conf /etc/nginx/modules-available/
sudo ln -sf /etc/nginx/modules-available/rtmp.conf /etc/nginx/modules-enabled/rtmp.conf
# Ship the sanitized nginx.conf so only the TLS stream listener owns :1935.
sudo cp etc/nginx/nginx.conf /etc/nginx/nginx.conf
+sudo cp etc/nginx/snippets/proxy-headers.conf /etc/nginx/snippets/
sudo cp etc/nginx/sites-available/yummers.dev /etc/nginx/sites-available/
sudo ln -sf /etc/nginx/sites-available/yummers.dev /etc/nginx/sites-enabled/yummers.dev
sudo cp opt/obsproxy/server.py /opt/obsproxy/