-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Mistakes in Unit configuration #412
Comments
Thanks for opening this up! Yes, this was the first Unit configuration that I wrote and I am still learning. I'd be glad to take on a PR if you have more experience. I'd like it to replicate the features of the |
I'm also getting to know Unit for now. I solved problems by studying the documentation. I'm still working on the config. On your part, you need to finalize the configuration scripts. Next problem. Any scripts located in I still don't understand why SSL support and Cloudflare IP processing are needed, if this should be handled by a upstream server. This only complicates the configuration. The task of the application server is only route processing. |
We can't always assume this, so that's why we have this included. Keep me posted on what you learn and I'd love to review any suggestions for improvement. |
Thanks again for your report @TheAndrey! I am working on v3.4 and I am breaking your suggestions into different tasks. Here is where everything at:
I will update each issue individually and close this one. I appreciate your feedback! |
Steps To Reproduce
Hi,
I decided to build my application image based on Nginx Unit. I am having difficulty applying the custom server configuration due to errors found in the scripts.
Outcome
Disabling logging of healthcheck does not work. Although there is a rule in the configuration, it is always overwritten by the script. Custom additional configs cannot affect this. You should delete the specified line in the initialization script.
Private IP address ranges are missing in the reverse proxy configuration, although they are specified in Nginx. I want to use Unit as an application server located behind the upstream Nginx on the host.
The current configuration is very crude. I had to completely rewrite the config. In this case, it only works index.php at the same time, all other php scripts are downloaded as regular files. index.php you can also download it if you specify its name in the URL.
I got something like this configuration with my fixes.
It is imperfect. index.php it does not start when going to the directory, unless you explicitly specify the URI in the config.
Affected Docker Images
Anything else?
No response
The text was updated successfully, but these errors were encountered: