Add prod to git, move back to no-one user in server docker container

This commit is contained in:
Elizabeth Hunt 2023-01-29 17:14:55 -07:00
parent ecd07b0c9b
commit 4394d4721c
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
3 changed files with 13 additions and 3 deletions

View File

@ -69,8 +69,7 @@ ENV MIX_ENV="prod"
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/chessh ./
COPY --from=builder --chown=nobody:root /app/priv /app/priv
# USER nobody
USER root
USER nobody
EXPOSE 8080
EXPOSE 34355

1
config/.gitignore vendored
View File

@ -1 +0,0 @@
prod.exs

12
config/prod.exs Normal file
View File

@ -0,0 +1,12 @@
import Config
config :logger,
level: :warning,
truncate: 4096
config :chessh, RateLimits,
jail_timeout_ms: 5 * 60 * 1000,
jail_attempt_threshold: 15,
max_concurrent_user_sessions: 5,
player_session_message_burst_ms: 750,
player_session_message_burst_rate: 8