Set cookie, remove unnecessary expose's

This commit is contained in:
Elizabeth Hunt 2023-01-31 21:21:45 -07:00
parent 800d479863
commit bd49a76dc3
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 1 additions and 8 deletions

View File

@ -75,11 +75,4 @@ COPY --from=builder --chown=nobody:root /app/priv /app/priv
USER nobody
# EPMD (elixir cluster)
EXPOSE 4369
# API
EXPOSE 8080
# CheSSH!
EXPOSE 34355
CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start

View File

@ -151,7 +151,7 @@ function build_server() {
temp_file=$(mktemp)
cp "${build_dir}/.env" $temp_file
printf "\nNODE_ID=$node_conn\nRELEASE_NODE=chessh@192.168.100.${node_id}\nRELEASE_DISTRIBUTION=name\n" >> $temp_file
printf "\nNODE_ID=$node_conn\nRELEASE_NODE=chessh@192.168.100.${node_id}\nRELEASE_DISTRIBUTION=name\nRELEASE_COOKIE=chessh\n" >> $temp_file
scp $ssh_opts $temp_file $node_conn:~/.env
cp "${build_dir}/chessh.service" $temp_file