move /kb path to /knowledge

there's this weird thing that happens with nginx
with paths that end in /kb and I don't know why.
this at least fixes the problem.
This commit is contained in:
stupidcomputer 2024-06-29 18:29:27 -05:00
parent a965eb1aed
commit f578e219c5
4 changed files with 8 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<nav id="navbar" class="boxed"> <nav id="navbar" class="boxed">
<div id="leftnav"> <div id="leftnav">
<a href="/explorer">explorer</a> <a href="/explorer">explorer</a>
<a href="/kb">knowledge</a> <a href="/knowledge">knowledge</a>
</div> </div>
<div id="rightnav"> <div id="rightnav">
<a href="/explorer/all">all</a> <a href="/explorer/all">all</a>

View File

@ -3,4 +3,4 @@ title: "Franklin CCE Delegation website"
--- ---
This website contains some materials for the Franklin High School YMCA Center for Civic Engagement delegation. This website contains some materials for the Franklin High School YMCA Center for Civic Engagement delegation.
Specifically, a [bill database](/explorer) and a [collection of helpful articles](/kb) on various things are available here. Specifically, a [bill database](/explorer) and a [collection of helpful articles](/knowledge) on various things are available here.

View File

@ -4,6 +4,10 @@ upstream franklincce {
server { server {
listen 80; listen 80;
server_name franklincce.beepboop.systems;
port_in_redirect off;
absolute_redirect off;
server_name_in_redirect off;
location /explorer/ { location /explorer/ {
proxy_pass http://franklincce; proxy_pass http://franklincce;
@ -17,7 +21,7 @@ server {
alias /home/app/web/staticfiles/; alias /home/app/web/staticfiles/;
} }
location /kb { location /knowledge {
alias /home/app/web/staticfiles/kb; alias /home/app/web/staticfiles/kb;
} }

View File

@ -14,7 +14,7 @@
<nav id="navbar" class="boxed"> <nav id="navbar" class="boxed">
<div id="leftnav"> <div id="leftnav">
<a href="/explorer">explorer</a> <a href="/explorer">explorer</a>
<a href="/kb">knowledge</a> <a href="/knowledge">knowledge</a>
</div> </div>
</nav> </nav>