From 3ebb9a019b56f80fc80b3156d9b653b02a2cc23e Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sun, 8 Dec 2024 12:37:37 +0100 Subject: [PATCH] Update dockerfile and config --- config/development.yaml | 4 ++-- dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/development.yaml b/config/development.yaml index 7b320ad..6a5a967 100644 --- a/config/development.yaml +++ b/config/development.yaml @@ -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: diff --git a/dockerfile b/dockerfile index e98c324..272b05a 100644 --- a/dockerfile +++ b/dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["/usr/app/gabrielkaszewski_rs-cli", "start"] \ No newline at end of file