mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
set up proxy for kalite
This commit is contained in:
parent
c3d465da4c
commit
3e407f7cc0
3 changed files with 48 additions and 0 deletions
|
@ -13,6 +13,8 @@ kalite_admin_password: changeme
|
||||||
kalite_server_name: kalite
|
kalite_server_name: kalite
|
||||||
kalite_server_port: 8008
|
kalite_server_port: 8008
|
||||||
kalite_enabled: False
|
kalite_enabled: False
|
||||||
|
# if proxy conflicts with another higher priority service we want to proxy
|
||||||
|
proxy_kalite_serve: True
|
||||||
kalite_cron_enabled: False
|
kalite_cron_enabled: False
|
||||||
khan_assessment_install: True
|
khan_assessment_install: True
|
||||||
khan_assessment_url: "http://pantry.learningequality.org/downloads/ka-lite/0.16/content/khan_assessment.zip"
|
khan_assessment_url: "http://pantry.learningequality.org/downloads/ka-lite/0.16/content/khan_assessment.zip"
|
||||||
|
|
|
@ -62,3 +62,14 @@
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
||||||
- { src: 'kalite.sh.j2', dest: '/etc/profile.d/kalite.sh', mode: '0644'}
|
- { src: 'kalite.sh.j2', dest: '/etc/profile.d/kalite.sh', mode: '0644'}
|
||||||
|
- { src: 'kalite.config', dest: '/etc/{{ apache_config_dir}}', mode: '0644'}
|
||||||
|
|
||||||
|
- name: Enable proxy in debuntu
|
||||||
|
file: state=link src=/etc/apache2/sites-available
|
||||||
|
dest=/etc/apache2/sites-enavled
|
||||||
|
when: is_debuntu and proxy_kalite_serve
|
||||||
|
|
||||||
|
- name: Disable proxy in debuntu
|
||||||
|
file: state=absent src=/etc/apache2/sites-available
|
||||||
|
dest=/etc/apache2/sites-enavled
|
||||||
|
when: is_debuntu and not proxy_kalite_serve
|
||||||
|
|
35
roles/kalite/templates/kalite.conf
Normal file
35
roles/kalite/templates/kalite.conf
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ProxyRequests Off
|
||||||
|
ProxyVia Off
|
||||||
|
|
||||||
|
ProxyPass /kalite http://127.0.0.1:8008
|
||||||
|
ProxyPassReverse /kalite http://127.0.0.1:8008
|
||||||
|
|
||||||
|
ProxyPass "/learn" "http://127.0.0.1:8008/learn"
|
||||||
|
ProxyPassReverse "/learn" "http://127.0.0.1:8008/learn"
|
||||||
|
|
||||||
|
ProxyPass "/management" "http://127.0.0.1:8008/management"
|
||||||
|
ProxyPassReverse "/management" "http://127.0.0.1:8008/management"
|
||||||
|
|
||||||
|
ProxyPass "/coachreports" "http://127.0.0.1:8008/coachreports"
|
||||||
|
ProxyPassReverse "/coachreports" "http://127.0.0.1:8008/coachreports"
|
||||||
|
|
||||||
|
ProxyPass "/static" "http://127.0.0.1:8008/static"
|
||||||
|
ProxyPassReverse "/static" "http://127.0.0.1:8008/static"
|
||||||
|
|
||||||
|
ProxyPass "/update" "http://127.0.0.1:8008/update"
|
||||||
|
ProxyPassReverse "/update" "http://127.0.0.1:8008/update"
|
||||||
|
|
||||||
|
ProxyPass "/_generated" "http://127.0.0.1:8008/_generated"
|
||||||
|
ProxyPassReverse "/_generated" "http://127.0.0.1:8008/_generated"
|
||||||
|
|
||||||
|
ProxyPass "/securesync" "http://127.0.0.1:8008/securesync"
|
||||||
|
ProxyPassReverse "/securesync" "http://127.0.0.1:8008/securesync"
|
||||||
|
|
||||||
|
ProxyPass "/api" "http://127.0.0.1:8008/api"
|
||||||
|
ProxyPassReverse "/api" "http://127.0.0.1:8008/api"
|
||||||
|
|
||||||
|
ProxyPass "/content" "http://127.0.0.1:8008/content"
|
||||||
|
ProxyPassReverse "/content" "http://127.0.0.1:8008/content"
|
||||||
|
|
||||||
|
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue