-
Notifications
You must be signed in to change notification settings - Fork 747
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
Use Nginx config with outlets #913
base: main
Are you sure you want to change the base?
Conversation
a8e3a89
to
8250508
Compare
8250508
to
135aab5
Compare
ca741a9
to
12299cc
Compare
- file: | ||
path: "/etc/nginx/conf.d/outlets/server/offline-page.conf" | ||
contents: | | ||
error_page 502 /error_page.html; | ||
location /error_page.html { | ||
root /var/www/discourse-offline-page/html; | ||
internal; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to consider deployments that have Discourse pinned to the stable
branch. The outlets will not be present until stable
is bumped to include the new nginx configuration.
This config has several 'include' statements that serve as extension outlets. Most of the "find & replace" instructions from templates files have been replaced to use outlets. This commit also deprecates IPv6 template in favour of an automatic implementation that relies on container's connectivity.
12299cc
to
e216fa7
Compare
filename: "/etc/nginx/conf.d/discourse.conf" | ||
from: /listen 80;/ | ||
filename: "/etc/nginx/conf.d/outlets/server/http.conf" | ||
from: /listen 80;(\nlisten \[::\]:80;)?/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need to use a replace
here? We could just overwrite the file.
This config has several 'include' statements that serve as extension
outlets. Most of the "find & replace" instructions from templates
files have been replaced to use outlets.
This commit also deprecates IPv6 template in favour of an automatic
implementation that relies on container's connectivity.