One of the domains I use needs to run Flask using uWSGI and I'm wondering of the recommended approach to manage the Nginx conf file for this specific domain. I use Froxlor to map the path to the application and generate the Let's Encrypt SSL certificates and I've edited the Froxlor-generated Nginx conf file to remove php-specific include lines and add uWSGI lines, so it all works fine. But I suspect the next time the cron runs that regenerates the scripts, it will be overwrtten.
So my question is: what is the recommended approach for keeping the custom configuration for this domain as I didn't see any domain-specific field for adding custom Nginx conf lines...or did I miss something? I've checked the forum responses and feature requests for an answer, but didn't find an answer.
I'm guessing there are a few approaches:
Copy and keep the conf file entirely separate from Froxlor (and somehow prevent it from generating one)
Perhaps add a snippet for the custom configuration to include
I've overlooked a domain-specific custom configuration I can add so Froxlor generates the correct file
something else?
Any guidance would be helpful and appreciated! (chatGPT suggested a solution too, but it seems to have been based on Froxlor < v2)
Question
Duane Raymond
Hi.
One of the domains I use needs to run Flask using uWSGI and I'm wondering of the recommended approach to manage the Nginx conf file for this specific domain. I use Froxlor to map the path to the application and generate the Let's Encrypt SSL certificates and I've edited the Froxlor-generated Nginx conf file to remove php-specific include lines and add uWSGI lines, so it all works fine. But I suspect the next time the cron runs that regenerates the scripts, it will be overwrtten.
So my question is: what is the recommended approach for keeping the custom configuration for this domain as I didn't see any domain-specific field for adding custom Nginx conf lines...or did I miss something? I've checked the forum responses and feature requests for an answer, but didn't find an answer.
I'm guessing there are a few approaches:
Any guidance would be helpful and appreciated! (chatGPT suggested a solution too, but it seems to have been based on Froxlor < v2)
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now