1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #2316 from tim-moody/kolibri-workaround

Ivan Savov's workaround [so Kolibri exercises work]
This commit is contained in:
A Holt 2020-04-01 12:18:53 -04:00 committed by GitHub
commit b619a1f455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,4 @@
location /kolibri/ {
location {{ kolibri_url_without_slash }} {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
@ -6,3 +6,9 @@ location /kolibri/ {
proxy_pass http://127.0.0.1:8009;
}
location /static/mathjax/2.1/ {
rewrite ^(.*)$ /kolibri$1 permanent;
}
location /static/images/spinner.gif {
rewrite ^(.*)$ /kolibri$1 permanent;
}

View file

@ -7,7 +7,7 @@ RemainAfterExit=yes
Environment=KOLIBRI_USER={{ kolibri_user }}
Environment=KOLIBRI_HOME={{ kolibri_home }}
Environment=KOLIBRI_HTTP_PORT={{ kolibri_http_port }}
Environment=KOLIBRI_URL_PATH_PREFIX={{ kolibri_url }}
Environment=KOLIBRI_URL_PATH_PREFIX={{ kolibri_url_without_slash }}
User={{ kolibri_user }}
Group={{ apache_user }}
TimeoutStartSec=infinity