Skip to content

Commit

Permalink
docs: update default server ports
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent 942c50b commit 7dab80b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .nfpm/soft-serve.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Keys defined in `SOFT_SERVE_INITIAL_ADMIN_KEYS` will be merged with
# the `initial_admin_keys` from /var/lib/soft-serve/config.yaml.
#
#SOFT_SERVE_HTTP_LISTEN_ADDR=:8080
#SOFT_SERVE_GIT_LISTEN_ADDR=:9418
#SOFT_SERVE_HTTP_LISTEN_ADDR=:23232
#SOFT_SERVE_SSH_LISTEN_ADDR=:23231
#SOFT_SERVE_SSH_KEY_PATH=ssh/soft_serve_host
#SOFT_SERVE_SSH_KEY_PATH=ssh/soft_serve_host_ed25519
#SOFT_SERVE_INITIAL_ADMIN_KEYS='ssh-ed25519 AAAAC3NzaC1lZDI1...'
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ ENV SOFT_SERVE_INITIAL_ADMIN_KEYS ""
# Expose ports
# SSH
EXPOSE 23231/tcp
# HTTP
EXPOSE 23232/tcp
# Stats
EXPOSE 23233/tcp
# Git
EXPOSE 9418/tcp

# Set the default command
ENTRYPOINT [ "/usr/local/bin/soft", "serve" ]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ git:
# The HTTP server configuration.
http:
# The address on which the HTTP server will listen.
listen_addr: ":8080"
listen_addr: ":23232"

# The path to the TLS private key.
tls_key_path: ""
Expand All @@ -182,12 +182,12 @@ http:
# The public URL of the HTTP server.
# This is the address that will be used to clone repositories.
# Make sure to use https:// if you are using TLS.
public_url: "http://localhost:8080"
public_url: "http://localhost:23232"

# The stats server configuration.
stats:
# The address on which the stats server will listen.
listen_addr: ":8081"
listen_addr: ":23233"

# Additional admin keys.
#initial_admin_keys:
Expand Down
8 changes: 4 additions & 4 deletions docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ docker run \
--name=soft-serve \
--volume /path/to/data:/soft-serve \
--publish 23231:23231 \
--publish 23232:23232 \
--publish 23233:23233 \
--publish 9418:9418 \
--publish 8080:8080 \
--publish 8081:8081 \
--restart unless-stopped \
charmcli/soft-serve:latest
```
Expand All @@ -35,9 +35,9 @@ services:
- /path/to/data:/soft-serve
ports:
- 23231:23231
- 23232:23232
- 23233:23233
- 9418:9418
- 8080:8080
- 8081:8081
restart: unless-stopped
```
Expand Down

0 comments on commit 7dab80b

Please sign in to comment.