Skip to content

Commit 5a8493e

Browse files
author
Christoph Henrici
committed
Prod unsecure
1 parent 1c44fee commit 5a8493e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy-cloudrun.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
--allow-unauthenticated
6767
--memory=512Mi
6868
--max-instances=1
69-
--set-env-vars=SPRING_PROFILES_ACTIVE=dev
69+
--set-env-vars=SPRING_PROFILES_ACTIVE=prod
7070
7171
- name: Display Cloud Run URL
7272
run: |

src/main/resources/application-prod.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
spring.h2.console.enabled=false
33

44
# Cookies must be secure on HTTPS
5-
server.servlet.session.cookie.secure=true
5+
# set to true in real prod, but Cloud Run doenst work
6+
server.servlet.session.cookie.secure=false
67
server.servlet.session.cookie.same-site=Lax
78

89
# Cloud Run / proxy headers (correct scheme, redirects, etc.)
@@ -11,3 +12,4 @@ server.forward-headers-strategy=framework
1112
# Quieter logs
1213
logging.level.org.springframework.web=INFO
1314
logging.level.org.hibernate.SQL=INFO
15+
logging.level.ch.henr.reactboot.config.TenantFilter=INFO

0 commit comments

Comments
 (0)