-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx misconfiguration #81
Comments
While I can't explain the behavior, the user is now reporting that it works with safari after uncommenting on the resolver line. I made it: The config still fails |
No. If no resolver is configured Nginx uses the host resolver (host as in host which is running Nginx, not Docker host) which is in this case the container. The container itself uses the Docker host resolver (because this deployment uses a user defined network which is being created by |
[jaya@localhost conf.d]$ sudo cat default.conf proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off; server {
} May 28 16:10:43 localhost.localdomain systemd[1]: Starting nginx - high performance web server... |
There is no error in default.conf file but it is showingun expected } if i just remove the extension it is working there is no error but problem here is i need to save that file as .conf extension then only the mattermost curl http://localhost will work |
While troubleshooting an error related to safari users not being able to resolve the site in browser, I came to find that the nginx configuration needs tweaking.
First, I found that there was an error in the nginx logs.
The command
docker exec -ti nginx_mattermost watch cat /var/log/nginx/error.log
I kept seeing the error:
Based on replies to this thread here it seems this is related to OSCP. I notice the latest commit with this file comments out the
resolver 1.1.1.1
line. Was this a regressive move?I've tried to modify the nginx
default.conf
file unsuccessfully so far.Using the default config and issuing
docker exec -ti nginx_mattermost nginx -t -c /etc/nginx/conf.d/default.conf
results in:This brings me to try many variations so far all unsuccessful. Interestingly, this failed config somehow doesn't result in a reboot loop and the image does run as-is.
I'm requesting someone look into the standard docker nginx config. Why was the resolver removed, why does the default config fail, and what should be shifted to ensure the correct configuration passes nginx config test?
The text was updated successfully, but these errors were encountered: