Add documentation for listening port configuration

Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
This commit is contained in:
justusbunsi 2022-06-17 13:02:26 +02:00
parent d004a7f7f3
commit 908285eb0a
No known key found for this signature in database
GPG key ID: 82B29BF2507F9F8B
3 changed files with 20 additions and 0 deletions

View file

@ -1,5 +1,15 @@
# Changelog
## v0.2.1
### 🤖 Application
- Allow configuring listening port
### 🐳 Docker image
- Add `GITEA_SQ_BOT_PORT` environment variable
## v0.2.0
### 🤖 Application

View file

@ -41,6 +41,7 @@ ENV HOME=/home/bot
EXPOSE 3000
ENV GIN_MODE "release"
ENV GITEA_SQ_BOT_CONFIG_PATH "/home/bot/config/config.yaml"
ENV GITEA_SQ_BOT_PORT "3000"
VOLUME ["/home/bot/config/"]
RUN ["chmod", "+x", "/usr/local/bin/docker-entrypoint.sh"]

View file

@ -53,6 +53,15 @@ See [config.example.yaml](config/config.example.yaml) for a full configuration s
## Installation
Supported environment variables for application runtime configuration:
| Environment Variable | Purpose |
|-----------------------------|---------------------------------|
| `GITEA_SQ_BOT_PORT` | Port the bot will listen on |
| `GITEA_SQ_BOT_CONFIG_PATH` | Full path to configuration file |
For detailed information, use the `--help` flag.
### Docker
Create a directory `config` and place your [config.yaml](config/config.example.yaml) inside it. Open a terminal next to this directory