Skip to content

Commit

Permalink
Add SESSION_SECURE_COOKIE to web installer
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Aug 29, 2021
1 parent 15443d1 commit 92e4dbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
# Application URL
APP_URL=https://example.com

# Use HTTP protocol and redirect to HTTPS
# Use HTTPS protocol and redirect to HTTPS
#APP_FORCE_HTTPS=true

# If you are using HTTPS, feel free to uncomment this line to improve security
#SESSION_SECURE_COOKIE=true

# Timezones: https://github.com/freescout-helpdesk/freescout/wiki/PHP-Timezones
# Comment it to use default timezone from php.ini
#APP_TIMEZONE=Europe/London
Expand All @@ -29,7 +32,4 @@ DB_PASSWORD=
APP_KEY=

# Uncomment to see errors in your browser, don't forget to comment it back when debugging finished
#APP_DEBUG=true

# If you are using HTTPS, feel free to uncomment this line to improve security
#SESSION_SECURE_COOKIE=true
#APP_DEBUG=true
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public function saveFileWizard(Request $request)
'APP_URL='.$request->app_url."\n\n".
'# Use HTTP protocol and redirect to HTTPS'."\n".
'APP_FORCE_HTTPS='.$request->app_force_https."\n\n".
'# Improve security'."\n".
'SESSION_SECURE_COOKIE='.$request->app_force_https."\n\n".
'# Timezones: https://github.com/freescout-helpdesk/freescout/wiki/PHP-Timezones'."\n".
'# Comment it to use default timezone from php.ini'."\n".
'APP_TIMEZONE='.$request->app_timezone."\n\n".
Expand Down

0 comments on commit 92e4dbc

Please sign in to comment.