diff options
Diffstat (limited to 'push.sh')
| -rwxr-xr-x | push.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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/ |
