Add nginx reverse proxy example #1056
Replies: 4 comments 1 reply
-
hi,
I'm converting this issue to a discussion, since it does not have any direct impact on alf.io's code |
Beta Was this translation helpful? Give feedback.
-
Please double check the value of the
environment variable in the docker-compose descriptor.
|
Beta Was this translation helpful? Give feedback.
-
That was it! Thanks for the help, really appreciate it! Totally missed the argument in the section of the docker-compose. All the best, |
Beta Was this translation helpful? Give feedback.
-
Hi
Is there anything I'm doing wrong? EDIT: Got it working with this virtual host config
|
Beta Was this translation helpful? Give feedback.
-
This issue is a direct consequence of running alf.io in an docker environment (using docker-compose) and being stuck with the "development mode" notice, although the site access is no problem (see also #363 and #834).
Is there an example of a nginx reverse proxy?
This is my nginx config for the reverse proxy right now (the site is of course served with SSL), maybe someone can spot the error - after finding a working configuration, I'll happily do a PR for the complete nginx example.
location / { proxy_pass http://127.0.0.1:8013; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
Kind regards,
Paul
Beta Was this translation helpful? Give feedback.
All reactions