Skip to content
Snippets Groups Projects
Commit fabce8f9 authored by Gallenkamp, Fabian's avatar Gallenkamp, Fabian
Browse files

updated documentation

parent b844efca
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ Note: Use ``scp mycert.crt user@host:/home/user/`` and ``scp mycert.key user@hos ...@@ -41,6 +41,7 @@ Note: Use ``scp mycert.crt user@host:/home/user/`` and ``scp mycert.key user@hos
2. Adapt your (inventory-)config with ``nano /opt/otree/otree-ansible/group_vars/otree_servers.yml`` from the provided example accordingly (press "Strg-x", then "j" to save): 2. Adapt your (inventory-)config with ``nano /opt/otree/otree-ansible/group_vars/otree_servers.yml`` from the provided example accordingly (press "Strg-x", then "j" to save):
``` ```
[...]
# fqdn of the otree parents server # fqdn of the otree parents server
otree_domain: "company.org" otree_domain: "company.org"
# linux group for the otree users # linux group for the otree users
...@@ -54,9 +55,7 @@ otree_users: ...@@ -54,9 +55,7 @@ otree_users:
override: yes override: yes
# redis queue. Note don't use a slot twice, there are 16 slots available (0-15) # redis queue. Note don't use a slot twice, there are 16 slots available (0-15)
redis: "redis://localhost:6379/1" redis: "redis://localhost:6379/1"
# which database should be used. Examples: "postgres://USER:PASSWORD@HOST:PORT/NAME" or "sqlite:////home/user/db.sqlite3" # otree admin password (also used for postgres db, don't use character "@" or ":" in it)
database: "sqlite:////home/otree1/db.sqlite3"
# otree admin password
admin_pw: "mysecretpw1" admin_pw: "mysecretpw1"
# auth level, possible values: "STUDY", "DEMO" # auth level, possible values: "STUDY", "DEMO"
auth_level: "STUDY" auth_level: "STUDY"
...@@ -70,6 +69,7 @@ otree_users: ...@@ -70,6 +69,7 @@ otree_users:
python_binary_path: "/usr/bin/python3.7" python_binary_path: "/usr/bin/python3.7"
# app git-repository (optional value) # app git-repository (optional value)
# app_repo: "https://github.com/oTree-org/oTree.git" # app_repo: "https://github.com/oTree-org/oTree.git"
[...]
``` ```
### get the otree project on your server ### get the otree project on your server
......
...@@ -7,7 +7,7 @@ home_path: "/home" ...@@ -7,7 +7,7 @@ home_path: "/home"
nginx_config_path: "/etc/nginx" nginx_config_path: "/etc/nginx"
nginx_sites_available: "{{ nginx_config_path }}/sites-available" nginx_sites_available: "{{ nginx_config_path }}/sites-available"
nginx_sites_enabled: "{{ nginx_config_path }}/sites-enabled" nginx_sites_enabled: "{{ nginx_config_path }}/sites-enabled"
default_redirection: "https:// mydomain " # default_redirection: "https:// mydomain " OPTIONAL
otree_domain: "company.org" otree_domain: "company.org"
# fqdn of the otree parent domain # fqdn of the otree parent domain
...@@ -16,16 +16,14 @@ otree_group_name: "otreeusers" ...@@ -16,16 +16,14 @@ otree_group_name: "otreeusers"
otree_users: otree_users:
# list of users for the available otree instances # list of users for the available otree instances
otree1: otree:
# linux username # linux username
override: yes override: yes
# should a existing otree environment be overriden # should a existing otree environment be overriden
redis: "redis://localhost:6379/1" redis: "redis://localhost:6379/1"
# redis queue. Note don't use a slot twice, there are 16 slots available (0-15) # redis queue. Note don't use a slot twice, there are 16 slots available (0-15)
database: "sqlite:///{{ home_path }}/otree1/db.sqlite3"
# which database should be used. Examples: "postgres://USER:PASSWORD@HOST:PORT/NAME" or "sqlite:///{{ home_path }}/user/db.sqlite3"
admin_pw: "mysecretpw1" admin_pw: "mysecretpw1"
# otree admin password # otree admin password (also used for postgres db, don't use character "@" or ":" in it)
auth_level: "STUDY" auth_level: "STUDY"
# auth level, possible values: "STUDY", "DEMO" # auth level, possible values: "STUDY", "DEMO"
secret_key: "safaho9awefzuwf" secret_key: "safaho9awefzuwf"
...@@ -42,9 +40,7 @@ otree_users: ...@@ -42,9 +40,7 @@ otree_users:
app_repo: "https://github.com/oTree-org/oTree.git" app_repo: "https://github.com/oTree-org/oTree.git"
# optional: if set clone provided git repository instead of provided directory # optional: if set clone provided git repository instead of provided directory
# for ssh: git@domain:project-group/project.git # for ssh: git@domain:project-group/project.git
pre_release: yes
redis: "redis://localhost:6379/2" redis: "redis://localhost:6379/2"
database: "sqlite:///{{ home_path }/otree2/db.sqlite3"
admin_pw: "mysecretpw2" admin_pw: "mysecretpw2"
auth_level: "DEMO" auth_level: "DEMO"
secret_key: "sdfunlidsgjndrsgf" secret_key: "sdfunlidsgjndrsgf"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment