Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/83 fix pro produkční fe workflow #90

Merged
merged 19 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);

Loading