Skip to content

Commit d720e21

Browse files
committed
More fixes
1 parent a4fe73a commit d720e21

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
- name: Package
1818
uses: JackMcKew/pyinstaller-action-windows@main
19+
with:
20+
path: src
1921

2022
- name: Upload Artifacts
2123
uses: actions/upload-artifact@v2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
From python:3
2-
COPY main.py entrypoint.sh ./
3-
RUN pip install -r requirements.txt
2+
COPY src/main.py entrypoint.sh ./
3+
RUN pip install -r src/requirements.txt
44
ENTRYPOINT [ "sh", "./entrypoint.sh" ]

docker-compose.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ services:
55
build: .
66
restart: unless-stopped
77
environment:
8-
- API_ADDRESS=0.0.0.0 # Address of this machine
9-
- API_PORT=4445 # Port you wish to use for API
10-
- API_KEY= # Auth key you wish to set
11-
- OBS_ADDRESS=127.0.0.1 # IP of machine running OBS Studio
12-
- OBS_PORT=4444 # OBS port
13-
- OBS_PASSWORD= # OBS password, if used
8+
- API_ADDRESS=0.0.0.0 # Address of this machine
9+
- API_PORT=4445 # Port you wish to use for API
10+
- API_KEY= # Auth key you wish to set
11+
- OBS_URL=ws://127.0.0.1:4444 # WebSocket Connect URL
12+
- OBS_PASSWORD= # OBS password, if used
1413
ports:
1514
- "4445:4445" # Set to same value as API_PORT

entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ bind_to_port = @api_port@
88
authentication_key = @api_key@
99
1010
[obsws]
11-
ws_address = @obs_address@
12-
ws_port = @obs_port@
11+
ws_url = @obs_url@
1312
ws_password = @obs_password@
1413
EOF
1514
sed -i "s|@api_address@|${API_ADDRESS}|" ./config.ini
1615
sed -i "s|@api_port@|${API_PORT}|" ./config.ini
1716
sed -i "s|@api_key@|${API_KEY}|" ./config.ini
1817

19-
sed -i "s|@obs_address@|${OBS_ADDRESS}|" ./config.ini
20-
sed -i "s|@obs_port@|${OBS_PORT}|" ./config.ini
18+
sed -i "s|@obs_url@|${OBS_URL}|" ./config.ini
2119
sed -i "s|@obs_password@|${OBS_PASSWORD}|" ./config.ini
2220

2321
# Start the server

main.py renamed to src/main.py

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)