From 7a2f434171894a70d4a1847213c7743ed2ed3287 Mon Sep 17 00:00:00 2001 From: Felix Auringer <48409110+felixauringer@users.noreply.github.com> Date: Fri, 30 Apr 2021 08:57:10 +0200 Subject: [PATCH] Change default port of Poseidon to 7200 --- Dockerfile | 2 +- ci/api.tpl.nomad | 2 +- config/config.go | 4 ++-- configuration.example.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75b0eec..11777e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,5 @@ RUN adduser --disabled-password api USER api COPY poseidon /home/api/ -EXPOSE 3000 +EXPOSE 7200 CMD ["/home/api/poseidon"] diff --git a/ci/api.tpl.nomad b/ci/api.tpl.nomad index 8116ed1..45d2b47 100644 --- a/ci/api.tpl.nomad +++ b/ci/api.tpl.nomad @@ -28,7 +28,7 @@ job "${NOMAD_SLUG}" { mode = "bridge" port "http" { - to = 3000 + to = 7200 } } diff --git a/config/config.go b/config/config.go index 5bb5222..e81185a 100644 --- a/config/config.go +++ b/config/config.go @@ -18,8 +18,8 @@ import ( var ( Config = &configuration{ Server: server{ - Address: "127.0.0.1", - Port: 3000, + Address: "127.0.0.1", + Port: 7200, Token: "", TLS: false, CertFile: "", diff --git a/configuration.example.yaml b/configuration.example.yaml index 3921ade..d1c16a4 100644 --- a/configuration.example.yaml +++ b/configuration.example.yaml @@ -3,7 +3,7 @@ server: # Address on which the webserver listens address: 127.0.0.1 # Port on which the webserver listens - port: 3000 + port: 7200 # If set, this token is required in the X-Poseidon-Token header for each route except /health token: SECRET # If set, the API uses TLS for all incoming connections