Merge pull request 'Switch from port 8080 to 80' (#14) from change-port-80 into main
All checks were successful
continuous-integration/drone Build is passing

Reviewed-on: #14
This commit is contained in:
Dominic Grimm 2022-01-15 19:09:58 +00:00
commit 3904dcdd69
3 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ http {
# }
location /graphql {
proxy_pass http://backend:8080;
proxy_pass http://backend;
}
location /adminer {

View file

@ -32,5 +32,5 @@ FROM scratch as runner
COPY --from=micrate-builder /app/bin/micrate /bin/micrate
COPY --from=builder /app/bin/mw /bin/mw
COPY ./db ./db
EXPOSE 8080
EXPOSE 80
CMD [ "mw" ]

View file

@ -4,8 +4,8 @@ module MW
extend self
def run : Nil
Server.run(8080, [HTTP::LogHandler.new, HTTP::ErrorHandler.new]) do |server|
address = server.bind_tcp("0.0.0.0", 8080, true)
Server.run(80, [HTTP::LogHandler.new, HTTP::ErrorHandler.new]) do |server|
address = server.bind_tcp("0.0.0.0", 80, true)
puts "Listening on http://#{address}"
server.listen
end