mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 20:55:19 +02:00
Migration to new documentation and information site
This commit is contained in:
parent
8e5a20ec62
commit
17d8784d8c
59 changed files with 1967 additions and 11276 deletions
20
documentation/docs/troubleshooting/no_images.md
Normal file
20
documentation/docs/troubleshooting/no_images.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Troubleshooting: Images Not Displayed in AdventureLog
|
||||
|
||||
The AdventureLog backend container uses a built-in Nginx container to serve media to the frontend. The `PUBLIC_URL` environment variable is set to the external URL of the **backend** container. This URL is used to generate the URLs for the images in the frontend. If this URL is not set correctly or not accessible from the frontend, the images will not be displayed.
|
||||
|
||||
If you're experiencing issues with images not displaying in AdventureLog, follow these troubleshooting steps to resolve the issue.
|
||||
|
||||
1. **Check the `PUBLIC_URL` Environment Variable**:
|
||||
|
||||
- Verify that the `PUBLIC_URL` environment variable is set correctly in the `docker-compose.yml` file for the `server` service.
|
||||
- The `PUBLIC_URL` should be set to the external URL of the backend container. For example:
|
||||
```
|
||||
PUBLIC_URL=http://backend.example.com
|
||||
```
|
||||
|
||||
2. **Check `CSRF_TRUSTED_ORIGINS` Environment Variable**:
|
||||
- If you have set the `CSRF_TRUSTED_ORIGINS` environment variable in the `docker-compose.yml` file, ensure that it includes the frontend URL and the backend URL.
|
||||
- For example:
|
||||
```
|
||||
CSRF_TRUSTED_ORIGINS=http://frontend.example.com,http://backend.example.com
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue