Vote count: 0 I am currently developing a webapp using docker-compose and Docker. Currently, there is a front-end Nginx reverse proxy-server in one container and a Rails app in another container. Sometimes, the Rails app needs to make changes to the Nginx configuration files. I've implemented this by mounting the configuration directory as a shared volume in both containers. However, to force Nginx to reload its configuration files after the Rails app modifies it, it needs to send a HUP signal to the Nginx process. At the moment, I am implementing this by mounting the host's /var/run/docker.sock into the Rails app container and using a gem to ask the host Docker to send the signal to the rig...
ادامه مطلبVote count: 0 My site works fine locally, but on the staging server, I get the following error: "Referer checking failed - Referer is insecure while host is secure." Settings files are identical in both environments. Possibly should not be, but I'm not sure what needs to be tweaked. The only other question I can find about this issue is CSRF verification Failed - Referer is insecure while host is secure, but that seems to have the opposite problem (works on production, but not locally). I've looked at https://github.com/django/django/blob/master/django/middleware/csrf.py, but it's not immediately helpful to me. asked 16 secs agoballardjw2 Let's block ads! بخوانید...
ادامه مطلب