From 2851af29be170ea8ae373ccb75dfe01e183ceca9 Mon Sep 17 00:00:00 2001 From: Tibet Teixeira Date: Thu, 23 May 2024 01:59:11 -0300 Subject: [PATCH] Ajuste no application.properties --- .github/workflows/deploy.yml | 2 +- src/main/resources/application.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9bbdbfb..d011a57 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,4 +46,4 @@ jobs: - name: Remove docker container run: docker rm -f minhasfinancas - name: Run docker container - run: docker run -d -p 8080:8080 -e DATABASE_USERNAME=${{ secrets.DATABASE_USERNAME }} -e DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' -e DATABASE_URL=${{ secrets.DATABASE_URL }} --name minhasfinancas ${{ secrets.DOCKER_USERNAME }}/minhasfinancas:latest \ No newline at end of file + run: docker run -d -p 8080:8080 -e DATABASE_USERNAME=${{ secrets.DATABASE_USERNAME }} -e DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' -e DATABASE_URL=${{ secrets.DATABASE_URL }} -e JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }} --name minhasfinancas ${{ secrets.DOCKER_USERNAME }}/minhasfinancas:latest \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c6bf7f4..ce2a831 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,7 @@ spring.profiles.active=production server.port=8080 -server.servlet.context-path=/minhasfinancas +#server.servlet.context-path=/minhasfinancas server.error.path=/error server.error.include-message=always @@ -15,7 +15,7 @@ spring.datasource.driver-class-name=org.postgresql.Driver # Security security.jwt.expiracao=120 -security.jwt.chave-assinatura=peY4tGENAfsIBkGYP7IAXVBPZKyk3MfHwmN3mxAbEZsRgt5AZXTVyMaVyO5QgFGQ +security.jwt.chave-assinatura=${JWT_SECRET_KEY} # Info info.app.title=Minhas finan\u00E7as API