{"action":"closed","issue":{"url":"https://api.github.com/repos/CachetHQ/Docker/issues/287","repository_url":"https://api.github.com/repos/CachetHQ/Docker","labels_url":"https://api.github.com/repos/CachetHQ/Docker/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/CachetHQ/Docker/issues/287/comments","events_url":"https://api.github.com/repos/CachetHQ/Docker/issues/287/events","html_url":"https://github.com/CachetHQ/Docker/issues/287","id":313502314,"number":287,"title":"Don't write custom defaults to the .env file","user":{"login":"hensur","id":6135561,"avatar_url":"https://avatars1.githubusercontent.com/u/6135561?v=4","gravatar_id":"","url":"https://api.github.com/users/hensur","html_url":"https://github.com/hensur","followers_url":"https://api.github.com/users/hensur/followers","following_url":"https://api.github.com/users/hensur/following{/other_user}","gists_url":"https://api.github.com/users/hensur/gists{/gist_id}","starred_url":"https://api.github.com/users/hensur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hensur/subscriptions","organizations_url":"https://api.github.com/users/hensur/orgs","repos_url":"https://api.github.com/users/hensur/repos","events_url":"https://api.github.com/users/hensur/events{/privacy}","received_events_url":"https://api.github.com/users/hensur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-11T21:56:05Z","updated_at":"2018-04-14T05:51:53Z","closed_at":"2018-04-14T05:51:53Z","author_association":"NONE","body":"I just had this issue when building the docker image using the cachet 2.4 branch: https://github.com/CachetHQ/Cachet/issues/2682\r\n\r\nI noticed that no sessions were saved, which lead to a csrf verification failure.\r\nI could fix this by deleting these variables from the /var/www/html/.env file:\r\nSESSION_DRIVER\r\nSESSION_DOMAIN\r\nSESSION_SECURE_COOKIE\r\n\r\nAfter that cachet would set it's own defaults for these variables (\"file\" driver instad of \"apc\"), those are saved in /var/www/html/config/session.php.\r\nI don't know why the apc driver would not save sessions, but I guess it would be better to just use the cachet defaults instead of setting custom ones?\r\nOne could check if an environment variable was set and only then write it to the .env file..."}}
{"actor":{"display_login":"djdefi"}}