Skip to content

Commit

Permalink
Fix/83 fix pro produkční fe workflow (#90)
Browse files Browse the repository at this point in the history
* changed server.js, application.yml and application-prod.yml. Removed pull_request from deploy-app.yml

---------

Co-authored-by: Štěpán Moc <[email protected]>
  • Loading branch information
MocStepan and MocStepan authored May 9, 2024
1 parent 7bae228 commit bf0b07c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spring:
name: ${SECURITY_USERNAME}
password: ${SECURITY_PASSWORD}
jwt:
secure: false
sameSite: "Lax"
secure: true
sameSite: "none"
duration: 86400000 # 1 day
secret: ${JWT_SECRET}
secret: ${JWT_SECRET}
4 changes: 2 additions & 2 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spring:
show_sql: false
default_schema: public
jwt:
secure: false
sameSite: "Lax"
secure: true
sameSite: "none"
duration: 86400000 # 1 day
secret: "7A25432A462D4A614E645267556B58703272357538782F413F4428472B4B6250" # random string in base64, should be changed in production
4 changes: 2 additions & 2 deletions frontend/server.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(__dirname + '/dist/<app-name>'));
app.use(express.static(__dirname + '/dist/frontend/browser'));
app.get('/*', function(req,res) {
res.sendFile(path.join(__dirname+
'/dist/<app-name>/index.html'));});
'/dist/frontend/browser/index.html'));});
app.listen(process.env.PORT || 8080);

0 comments on commit bf0b07c

Please sign in to comment.