mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	Adds advanced config header warning and replaces variable info with translation
This commit is contained in:
		| @@ -257,16 +257,17 @@ | |||||||
|                 <div role="tabpanel" class="tab-pane" id="advanced"> |                 <div role="tabpanel" class="tab-pane" id="advanced"> | ||||||
|                     <div class="row"> |                     <div class="row"> | ||||||
|                         <div class="col-md-12"> |                         <div class="col-md-12"> | ||||||
|                             <p>Nginx variables available to you are:</p> |                             <p><%- i18n('all-hosts', 'advanced-config-var-headline') %></p> | ||||||
|                             <ul class="text-monospace"> |                             <ul class="text-monospace"> | ||||||
|                                 <li>$server          # Host/IP</li> |                                 <li><code>$server</code> <%- i18n('proxy-hosts', 'forward-host') %></li> | ||||||
|                                 <li>$port            # Port Number</li> |                                 <li><code>$port</code> <%- i18n('proxy-hosts', 'forward-port') %></li> | ||||||
|                                 <li>$forward_scheme  # http or https</li> |                                 <li><code>$forward_scheme</code> <%- i18n('proxy-hosts', 'forward-scheme') %></li> | ||||||
|                             </ul> |                             </ul> | ||||||
|                             <div class="form-group mb-0"> |                             <div class="form-group mb-0"> | ||||||
|                                 <label class="form-label"><%- i18n('all-hosts', 'advanced-config') %></label> |                                 <label class="form-label"><%- i18n('all-hosts', 'advanced-config') %></label> | ||||||
|                                 <textarea name="advanced_config" rows="8" class="form-control text-monospace" placeholder="# <%- i18n('all-hosts', 'advanced-warning') %>"><%- advanced_config %></textarea> |                                 <textarea name="advanced_config" rows="8" class="form-control text-monospace" placeholder="# <%- i18n('all-hosts', 'advanced-warning') %>"><%- advanced_config %></textarea> | ||||||
|                             </div> |                             </div> | ||||||
|  |                             <p class="small text-gray"><i class="fe fe-alert-triangle"></i> <%- i18n('all-hosts', 'advanced-config-header-info') %></p> | ||||||
|                         </div> |                         </div> | ||||||
|                     </div> |                     </div> | ||||||
|                 </div> |                 </div> | ||||||
|   | |||||||
| @@ -84,6 +84,8 @@ | |||||||
|       "advanced": "Advanced", |       "advanced": "Advanced", | ||||||
|       "advanced-warning": "Enter your custom Nginx configuration here at your own risk!", |       "advanced-warning": "Enter your custom Nginx configuration here at your own risk!", | ||||||
|       "advanced-config": "Custom Nginx Configuration", |       "advanced-config": "Custom Nginx Configuration", | ||||||
|  |       "advanced-config-var-headline": "These proxy details are available as nginx variables:", | ||||||
|  |       "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.", | ||||||
|       "hsts-enabled": "HSTS Enabled", |       "hsts-enabled": "HSTS Enabled", | ||||||
|       "hsts-subdomains": "HSTS Subdomains", |       "hsts-subdomains": "HSTS Subdomains", | ||||||
|       "locations": "Custom locations" |       "locations": "Custom locations" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user