Skip to content

Commit 6d90a8d

Browse files
committed
Update default port to 7910
1 parent fbe92c2 commit 6d90a8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WORKDIR /app
1212
RUN pip install -r requirements.txt
1313

1414
EXPOSE 80
15-
EXPOSE 8000
15+
EXPOSE 7910
1616
RUN service nginx start
1717

1818
RUN chmod +x /app/start.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OpenCTF // Filestore
22
====================
33

4-
This is a static file server, responsible for serving not only web assets, but also user avatars and challenge-related files (autogen included). It runs a Flask app on port 8000, listening internally from the main web application for uploads, and then serves the files using an Nginx server that is proxied from the main server.
4+
This is a static file server, responsible for serving not only web assets, but also user avatars and challenge-related files (autogen included). It runs a Flask app on port 7910, listening internally from the main web application for uploads, and then serves the files using an Nginx server that is proxied from the main server.
55

66
To run Filestore, just run `app.py` with Python 3. It will start the Filestore server on port 7910. If you are debugging OpenCTF locally without Nginx, you can also use `/static/<path>` to retrieve saved files.
77

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ service nginx start
66
if [ "$ENV" == "development" ]; then
77
exec bash -c "DATABASE_URL=$DATABASE_URL python app.py"
88
else
9-
exec bash -c "DATABASE_URL=$DATABASE_URL gunicorn --bind 0.0.0.0:8000 -w 4 app:app"
9+
exec bash -c "DATABASE_URL=$DATABASE_URL gunicorn --bind 0.0.0.0:7910 -w 4 app:app"
1010
fi

0 commit comments

Comments
 (0)