Add prod to git, move back to no-one user in server docker container
This commit is contained in:
parent
ecd07b0c9b
commit
4394d4721c
@ -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
1
config/.gitignore
vendored
@ -1 +0,0 @@
|
||||
prod.exs
|
12
config/prod.exs
Normal file
12
config/prod.exs
Normal 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
|
Loading…
Reference in New Issue
Block a user