more explicit nginx conf example
这个提交包含在:
父节点
483899574b
当前提交
cc2d0b7e09
|
@ -348,6 +348,9 @@ Note: of course with that setup you must ensure that **Realms is only accessible
|
||||||
Example Nginx configuration:
|
Example Nginx configuration:
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
auth_basic "Restricted";
|
||||||
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
正在加载...
在新工单中引用