Skip to content

Commit

Permalink
NGX-878: Add /goaccess location block in VPS hostname server block
Browse files Browse the repository at this point in the history
  • Loading branch information
combssm committed Jun 27, 2024
1 parent dbb19d5 commit 216944f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/etc/nginx/conf.d/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ server {
proxy_set_header Connection "";
}

location /ultrastack {
add_header X-Proxy-Cache $upstream_cache_status;
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-Host $site_domain;
proxy_set_header X-Forwarded-Server $site_domain;

proxy_no_cache 1;
proxy_cache_bypass 1;

proxy_pass https://apache_ssl;

proxy_http_version 1.1;
proxy_set_header Connection "";
}

{% if goaccess_enabled is defined and goaccess_enabled | bool %}
location /goaccess {
root /usr/share/nginx/html;
Expand Down

0 comments on commit 216944f

Please sign in to comment.