forum/docs/troubleshooting.md

20 lines
1.2 KiB
Markdown
Raw Normal View History

# Troubleshooting
## Editing Permissions on Linux
2022-07-28 19:01:17 +02:00
If you work on linux and cannot edit some of the project files right after the first installation, you can run `docker compose run --rm php chown -R $(id -u):$(id -g) .` to set yourself as owner of the project files that were created by the docker container.
## Fix Chrome/Brave SSL
2020-11-16 13:49:16 +01:00
If you have a TLS trust issues, you can copy the self-signed certificate from Caddy and add it to the trusted certificates :
2020-11-16 13:49:16 +01:00
# Mac
2022-07-28 19:01:17 +02:00
$ docker cp $(docker compose ps -q caddy):/data/caddy/pki/authorities/local/root.crt /tmp/root.crt && sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/root.crt
2020-11-16 13:49:16 +01:00
# Linux
2022-07-28 19:01:17 +02:00
$ docker cp $(docker compose ps -q caddy):/data/caddy/pki/authorities/local/root.crt /usr/local/share/ca-certificates/root.crt && sudo update-ca-certificates
## HTTPs and Redirects
2020-11-30 09:50:30 +01:00
If Symfony is generating an internal redirect for an `https://` url, but the resulting url is `http://`, you have to uncomment the `TRUSTED_PROXIES` setting in your `.env` file.
2020-11-16 13:49:16 +01:00
For more details see the [Symfony internal redirect documentation](https://symfony.com/doc/current/routing.html#redirecting-to-urls-and-routes-directly-from-a-route).