Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cankurttekin committed Nov 17, 2024
2 parents 09c1b30 + 1fd7464 commit 3d8f65e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM maven:3.8.5-openjdk-17 AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn clean package -DskipTests
RUN mvn clean package

# Stage 2: Run the application
FROM openjdk:17-jdk-slim
Expand All @@ -16,7 +16,7 @@ COPY --from=build /app/target/*.jar backend.jar
EXPOSE 8080
# EXPOSE 443

# urn the Spring Boot application
# Run the Spring Boot application
ENTRYPOINT ["java", "-jar", "backend.jar"]
#ENTRYPOINT ["java", "-jar", "backend.jar", "--server.ssl.enabled=true", "--server.ssl.key-store=certificate.p12", "--server.ssl.key-store-password=${KEY_STORE_PASS}", "--server.ssl.key-store-type=PKCS12", "--server.ssl.key-store-alias=${KEY_STORE_ALIAS}"]

4 changes: 2 additions & 2 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ app.jwtExpirationInMs=86400000

gemini.api.key=${GEMINI_API_KEY:"GEMINI_API_KEY"}

#ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
#ALLOWED_ORIGINS=${ALLOWED_ORIGINS:localhost:3000}
server.port=${PORT:8080}
#server.ssl.key-store=classpath:keystore.p12
#server.ssl.key-store-password=${KEY_STORE_PASS}
#server.ssl.keyStoreType=PKCS12
#server.ssl.key-alias=${KEY_STORE_ALIAS}

turnstile.secret-key=${TURNSTILE_SECRET:"0x0000"}
turnstile.secret-key=${TURNSTILE_SECRET:"0x0000"}

0 comments on commit 3d8f65e

Please sign in to comment.