Skip to content

Commit ab8aaa2

Browse files
committed
#69 add CUSTOM_WS_PORT bookworm
1 parent 5533f47 commit ab8aaa2

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f 58206d48e0e85d2e993ef5486d65455602d908ea
19+
git checkout -f a9272cf2328178d7054b8ddffeff169b71575be3
2020

2121
RUN \
2222
echo "**** build frontend ****" && \
@@ -183,7 +183,7 @@ RUN \
183183
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
184184
curl -o \
185185
/tmp/selkies.tar.gz -L \
186-
"https://github.com/selkies-project/selkies/archive/58206d48e0e85d2e993ef5486d65455602d908ea.tar.gz" && \
186+
"https://github.com/selkies-project/selkies/archive/a9272cf2328178d7054b8ddffeff169b71575be3.tar.gz" && \
187187
cd /tmp && \
188188
tar xf selkies.tar.gz && \
189189
cd selkies-* && \

Dockerfile.aarch64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f 58206d48e0e85d2e993ef5486d65455602d908ea
19+
git checkout -f a9272cf2328178d7054b8ddffeff169b71575be3
2020

2121
RUN \
2222
echo "**** build frontend ****" && \
@@ -181,7 +181,7 @@ RUN \
181181
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
182182
curl -o \
183183
/tmp/selkies.tar.gz -L \
184-
"https://github.com/selkies-project/selkies/archive/58206d48e0e85d2e993ef5486d65455602d908ea.tar.gz" && \
184+
"https://github.com/selkies-project/selkies/archive/a9272cf2328178d7054b8ddffeff169b71575be3.tar.gz" && \
185185
cd /tmp && \
186186
tar xf selkies.tar.gz && \
187187
cd selkies-* && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ All application settings are passed via environment variables:
3030
| :----: | --- |
3131
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
3232
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
33+
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082. |
3334
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
3435
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
3536
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ full_custom_readme: |
3434
| :----: | --- |
3535
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
3636
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
37+
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082. |
3738
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
3839
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
3940
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |

root/defaults/default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ server {
3636
proxy_connect_timeout 3600s;
3737
proxy_buffering off;
3838
client_max_body_size 10M;
39-
proxy_pass http://127.0.0.1:8082;
39+
proxy_pass http://127.0.0.1:CWS;
4040
}
4141
location SUBFOLDERfiles {
4242
fancyindex on;
@@ -90,7 +90,7 @@ server {
9090
proxy_connect_timeout 3600s;
9191
proxy_buffering off;
9292
client_max_body_size 10M;
93-
proxy_pass http://127.0.0.1:8082;
93+
proxy_pass http://127.0.0.1:CWS;
9494
}
9595
location SUBFOLDERfiles {
9696
fancyindex on;

root/etc/s6-overlay/s6-rc.d/init-nginx/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ NGINX_CONFIG=/etc/nginx/sites-available/default
66
# user passed env vars
77
CPORT="${CUSTOM_PORT:-3000}"
88
CHPORT="${CUSTOM_HTTPS_PORT:-3001}"
9+
CWS="${CUSTOM_WS_PORT:-8082}"
910
CUSER="${CUSTOM_USER:-abc}"
1011
SFOLDER="${SUBFOLDER:-/}"
1112

@@ -25,6 +26,7 @@ fi
2526
cp /defaults/default.conf ${NGINX_CONFIG}
2627
sed -i "s/3000/$CPORT/g" ${NGINX_CONFIG}
2728
sed -i "s/3001/$CHPORT/g" ${NGINX_CONFIG}
29+
sed -i "s/CWS/$CWS/g" ${NGINX_CONFIG}
2830
sed -i "s|SUBFOLDER|$SFOLDER|g" ${NGINX_CONFIG}
2931
sed -i "s|REPLACE_HOME|$HOME|g" ${NGINX_CONFIG}
3032
s6-setuidgid abc mkdir -p $HOME/Desktop

root/etc/s6-overlay/s6-rc.d/svc-selkies/run

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ if [ ! -z ${DEV_MODE+x} ]; then
5353
nodemon -V --ext py --exec \
5454
"python3" -m selkies \
5555
--addr="localhost" \
56-
--port="8081" \
57-
--enable_basic_auth="false" \
5856
--mode="websockets"
5957
fi
6058

@@ -63,6 +61,4 @@ fi
6361
exec s6-setuidgid abc \
6462
selkies \
6563
--addr="localhost" \
66-
--port="8081" \
67-
--enable_basic_auth="false" \
6864
--mode="websockets"

0 commit comments

Comments
 (0)