fix: add config example (#14)

This commit is contained in:
fan-tastic-z
2025-10-11 17:21:18 +08:00
committed by GitHub
parent cf0c6c332d
commit 85742a881e
2 changed files with 23 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ COPY --from=backend-build /app/target/release/vulnfeed ./vulnfeed
RUN chmod +x ./vulnfeed
# Copy default config
COPY dev/config.toml ./config.toml
COPY dev/config.toml.example ./config.toml
# Expose port
EXPOSE 9000

22
dev/config.toml.example Normal file
View File

@@ -0,0 +1,22 @@
[server]
listen_addr = "0.0.0.0:9000"
advertise_addr = "127.0.0.1:9000"
[auth.jwt]
secret = "LSJ74YUWkzGheiWMRxcH" # for development
expiration = 604800 # 7 days
[database]
host = "postgres"
port = 5432
username = "postgres"
password = "YSm*wF60c72CLJD!"
database_name = "vulnfeed"
[telemetry.logs.file]
filter = "INFO"
dir = "logs"
max_files = 64
[telemetry.logs.stderr]
filter = "INFO"