File tree Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 16
16
17
17
- name : Package
18
18
uses : JackMcKew/pyinstaller-action-windows@main
19
+ with :
20
+ path : src
19
21
20
22
- name : Upload Artifacts
21
23
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 1
1
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
4
4
ENTRYPOINT [ "sh" , "./entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ services:
5
5
build : .
6
6
restart : unless-stopped
7
7
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
14
13
ports :
15
14
- " 4445:4445" # Set to same value as API_PORT
Original file line number Diff line number Diff line change @@ -8,16 +8,14 @@ bind_to_port = @api_port@
8
8
authentication_key = @api_key@
9
9
10
10
[obsws]
11
- ws_address = @obs_address@
12
- ws_port = @obs_port@
11
+ ws_url = @obs_url@
13
12
ws_password = @obs_password@
14
13
EOF
15
14
sed -i " s|@api_address@|${API_ADDRESS} |" ./config.ini
16
15
sed -i " s|@api_port@|${API_PORT} |" ./config.ini
17
16
sed -i " s|@api_key@|${API_KEY} |" ./config.ini
18
17
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
21
19
sed -i " s|@obs_password@|${OBS_PASSWORD} |" ./config.ini
22
20
23
21
# Start the server
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments