fix: add config example (#14)
This commit is contained in:
@@ -74,7 +74,7 @@ COPY --from=backend-build /app/target/release/vulnfeed ./vulnfeed
|
|||||||
RUN chmod +x ./vulnfeed
|
RUN chmod +x ./vulnfeed
|
||||||
|
|
||||||
# Copy default config
|
# Copy default config
|
||||||
COPY dev/config.toml ./config.toml
|
COPY dev/config.toml.example ./config.toml
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|||||||
22
dev/config.toml.example
Normal file
22
dev/config.toml.example
Normal 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"
|
||||||
Reference in New Issue
Block a user