Update dockerfile and config

This commit is contained in:
2024-12-08 12:37:37 +01:00
parent bc22701b47
commit 3ebb9a019b
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ server:
# Port on which the server will listen. the server binding is 0.0.0.0:{PORT}
port: 5150
# The UI hostname or IP address that mailers will point to.
host: http://localhost
host: {{ get_env(name="HOST", default="http://localhost") }}
# Out of the box middleware configuration. to disable middleware you can changed the `enable` field to `false` of comment the middleware block
middlewares:
# #############################################
@@ -137,7 +137,7 @@ auth:
# JWT authentication
jwt:
# Secret key for token generation and verification
secret: PqRwLF2rhHe8J22oBeHy
secret: {{ get_env(name="JWT_SECRET", default="PqRwLF2rhHe8J22oBeHy") }}
# Token expiration time in seconds
expiration: 604800 # 7 days
location:

View File

@@ -15,4 +15,4 @@ COPY --from=builder /usr/src/assets/static/404.html /usr/app/assets/static/404.h
COPY --from=builder /usr/src/config /usr/app/config
COPY --from=builder /usr/src/target/release/gabrielkaszewski_rs-cli /usr/app/gabrielkaszewski_rs-cli
ENTRYPOINT ["/usr/app/gabrielkaszewski_rs-cli"]
ENTRYPOINT ["/usr/app/gabrielkaszewski_rs-cli", "start"]