Skip to content

Commit

Permalink
Merge pull request #155 from phuuthanh-dev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
phuuthanh-dev authored Aug 25, 2024
2 parents 5cfd1bd + c8df3f2 commit 08957df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM mcr.microsoft.com/mssql/server:2019-latest

# Biến môi trường
ENV ACCEPT_EULA=Y
ENV SA_PASSWORD=Thanhth@nh1
ENV SA_PASSWORD=

# Copy the SQL script vào container
COPY init.sql /usr/src/app/init.sql

# Chạy lệnh trong file sql
RUN /opt/mssql/bin/sqlservr & sleep 30 \
&& /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -i /usr/src/app/init.sql \
&& /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${{ secrets.SQL_SA_PASSWORD }} -i /usr/src/app/init.sql \
&& pkill sqlservr

EXPOSE 1433
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ public ResponseEntity<AuthenticationResponse> resetPassword(
return ResponseEntity.ok(authenticationService.resetPassword(request));
}


}
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ application.security.jwt.secret-key=jAkq3Mbc9Tz7X4D5Y6L8Q5C9wK8z2Gf9A6PqS5R8tV3v

# Access token expiration time (15 minutes)
#application.security.jwt.expiration=900000
application.security.jwt.expiration=3600000
application.security.jwt.expiration=7200000

# Refresh token expiration time (1 hour)
#application.security.jwt.refresh-token.expiration=3600000
Expand Down

0 comments on commit 08957df

Please sign in to comment.