Skip to content
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

Add a flag to skip generating default NGINX config #442

Merged
merged 1 commit into from Mar 26, 2021
Merged

Add a flag to skip generating default NGINX config #442

merged 1 commit into from Mar 26, 2021

Conversation

mr-karan
Copy link
Contributor

@mr-karan mr-karan commented Mar 26, 2021

Adds SKIP_NGINX_TEMPLATE_GENERATION environment variable support to frappe-nginx/docker-entrypoint.sh. The behavior is:

  • When set to 1, will skip the envsubst part and the user is expected to mount their own config file.
  • Default (0), will continue the current behavior of generating the config file from nginx-default.conf.template.

Discussed in #441 (comment). Marking it as WIP since I'd need to rebase this once #441 gets merged.

@revant
Copy link
Collaborator

revant commented Mar 26, 2021

This will help serving custom non python apps

https://discuss.erpnext.com/t/how-add-nodejs-app-to-frappe-bench/14276

@mr-karan mr-karan changed the title WIP: Add a flag to skip generating default NGINX config Add a flag to skip generating default NGINX config Mar 26, 2021
@mr-karan
Copy link
Contributor Author

@revant Rebased the changes. Is there anything else required for this PR?

@revant revant merged commit cb2c96d into frappe:develop Mar 26, 2021
@mr-karan mr-karan deleted the feat/nginx-skip branch March 26, 2021 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants