diff --git a/Dockerfile b/Dockerfile index 1928a94..700c8b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,9 @@ WORKDIR /home/container # Copy the built jar file from the builder stage COPY --from=builder /home/container/target/Paste-Backend.jar . -# Make port 3000 available to the world outside this container -EXPOSE 3000 -ENV PORT=3000 +# Make port 80 available to the world outside this container +EXPOSE 80 +ENV PORT=80 # Run the jar file CMD java -jar ScoreSaberUtils-Backend.jar -Djava.awt.headless=true diff --git a/src/main/java/cc/fascinated/backend/service/ScoreSaberService.java b/src/main/java/cc/fascinated/backend/service/ScoreSaberService.java index ebc9de8..165d018 100644 --- a/src/main/java/cc/fascinated/backend/service/ScoreSaberService.java +++ b/src/main/java/cc/fascinated/backend/service/ScoreSaberService.java @@ -76,6 +76,7 @@ public class ScoreSaberService extends TextWebSocketHandler { public ScoreSaberAccountToken getAccount(String id) { ScoreSaberAccountToken account = WebRequest.getAsEntity(String.format(GET_PLAYER_ENDPOINT, id), ScoreSaberAccountToken.class); if (account == null) { // Check if the account doesn't exist. + log.info("Account with id '{}' not found.", id); throw new ResourceNotFoundException("Account with id '%s' not found.".formatted(id)); } return account; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d117055..eb087ec 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ server: address: 0.0.0.0 - port: 3005 + port: 80 servlet: context-path: /