Skip to content

Commit a5229d0

Browse files
committed
Adds advanced config header warning and replaces variable info with translation
1 parent d95cd36 commit a5229d0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

frontend/js/app/nginx/proxy/form.ejs

+5-4
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,17 @@
257257
<div role="tabpanel" class="tab-pane" id="advanced">
258258
<div class="row">
259259
<div class="col-md-12">
260-
<p>Nginx variables available to you are:</p>
260+
<p><%- i18n('all-hosts', 'advanced-config-var-headline') %></p>
261261
<ul class="text-monospace">
262-
<li>$server # Host/IP</li>
263-
<li>$port # Port Number</li>
264-
<li>$forward_scheme # http or https</li>
262+
<li><code>$server</code> <%- i18n('proxy-hosts', 'forward-host') %></li>
263+
<li><code>$port</code> <%- i18n('proxy-hosts', 'forward-port') %></li>
264+
<li><code>$forward_scheme</code> <%- i18n('proxy-hosts', 'forward-scheme') %></li>
265265
</ul>
266266
<div class="form-group mb-0">
267267
<label class="form-label"><%- i18n('all-hosts', 'advanced-config') %></label>
268268
<textarea name="advanced_config" rows="8" class="form-control text-monospace" placeholder="# <%- i18n('all-hosts', 'advanced-warning') %>"><%- advanced_config %></textarea>
269269
</div>
270+
<p class="small text-gray"><i class="fe fe-alert-triangle"></i> <%- i18n('all-hosts', 'advanced-config-header-info') %></p>
270271
</div>
271272
</div>
272273
</div>

frontend/js/i18n/messages.json

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
"advanced": "Advanced",
8585
"advanced-warning": "Enter your custom Nginx configuration here at your own risk!",
8686
"advanced-config": "Custom Nginx Configuration",
87+
"advanced-config-var-headline": "These proxy details are available as nginx variables:",
88+
"advanced-config-header-info": "Please note, that any add_header or set_header directives added here will not be used by nginx. You will have to add a custom location '/' and add the header in the custom config there.",
8789
"hsts-enabled": "HSTS Enabled",
8890
"hsts-subdomains": "HSTS Subdomains",
8991
"locations": "Custom locations"

0 commit comments

Comments
 (0)