mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
Put back /srv/status
non-logging but include proxy details
This commit is contained in:
parent
5f59424937
commit
822d77713c
|
@ -90,6 +90,17 @@ server {
|
|||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location = /srv/status {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $thescheme;
|
||||
proxy_pass http://discourse;
|
||||
break;
|
||||
}
|
||||
|
||||
location ~ ^/assets/ {
|
||||
expires 1y;
|
||||
# asset pipeline enables this
|
||||
|
|
Loading…
Reference in New Issue
Block a user