Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
otree-ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiso-forschungslabor
otree-ansible
Commits
93142a1c
Commit
93142a1c
authored
Jul 30, 2019
by
Gallenkamp, Fabian
Browse files
Options
Downloads
Patches
Plain Diff
removed certificate deployment due to security considerations.
parent
8cd463d9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
configure_nginx.yml
+15
-14
15 additions, 14 deletions
configure_nginx.yml
group_vars/otree_servers.yml.example
+5
-2
5 additions, 2 deletions
group_vars/otree_servers.yml.example
templates/nginx_site.conf.j2
+2
-2
2 additions, 2 deletions
templates/nginx_site.conf.j2
with
23 additions
and
19 deletions
.gitignore
+
1
−
1
View file @
93142a1c
hosts
templates/nginx_unmodified_confs/
group_vars/otree_servers.yml
ssl/
files/
*.retry
*.swp
This diff is collapsed.
Click to expand it.
configure_nginx.yml
+
15
−
14
View file @
93142a1c
...
...
@@ -63,20 +63,21 @@
mode
:
"
0644"
notify
:
restart nginx
# TLS certificates
-
name
:
copy over certificate key files
copy
:
src
:
"
{{
item.src
}}"
dest
:
"
{{
item.dest
}}"
group
:
root
mode
:
"
{{
item.mode
}}"
no_log
:
yes
with_items
:
-
src
:
"
ssl/certs/localhost.crt"
dest
:
"
/etc/ssl/certs/localhost.crt"
mode
:
"
0644"
-
src
:
"
ssl/private/localhost.key"
dest
:
"
/etc/ssl/certs/localhost.key"
mode
:
"
0600"
# Unfourtunately not scriptable due to security considerations
#- name: copy over certificate key files
# copy:
# src: "{{ item.src }}"
# dest: "{{ item.dest }}"
# group: root
# mode: "{{ item.mode }}"
# no_log: yes
# with_items:
# - src: "ssl/certs/localhost.crt"
# dest: "/etc/ssl/certs/localhost.crt"
# mode: "0644"
# - src: "ssl/private/localhost.key"
# dest: "/etc/ssl/private/localhost.key"
# mode: "0600"
handlers
:
-
name
:
restart nginx
...
...
This diff is collapsed.
Click to expand it.
group_vars/otree_servers.yml.example
+
5
−
2
View file @
93142a1c
...
...
@@ -24,7 +24,7 @@ otree_users:
pre_release: no
# should the pre release version of otree be installed
redis: "redis://localhost:6379/1"
# redis queue. Note don't use a slot twice, there are 16 slots available
# redis queue. Note don't use a slot twice, there are 16 slots available
(0-15)
database: "sqlite:////home/otree1/db.sqlite3"
# which database should be used. Examples: "postgres://USER:PASSWORD@HOST:PORT/NAME" or "sqlite:////home/user/db.sqlite3"
admin_pw: "mysecretpw1"
...
...
@@ -32,7 +32,7 @@ otree_users:
auth_level: "STUDY"
# auth level, possible values: "STUDY", "DEMO"
secret_key: "safaho9awefzuwf"
# django secret key, use differe
t
in different instances
# django secret key, use differe
nt one
in different instances
production: "1"
# LOG-LEVEL, set to None ("production: ") to enable further debug messages.
port: 8005
...
...
@@ -50,3 +50,6 @@ otree_users:
production:
port: 8006
ssl_certificate_path: "/etc/ssl/certs/{{ otree_domain }}.crt"
ssl_certificate_key_path: "/etc/ssl/private/{{ otree_domain }}.key"
This diff is collapsed.
Click to expand it.
templates/nginx_site.conf.j2
+
2
−
2
View file @
93142a1c
...
...
@@ -18,8 +18,8 @@ server {
server_name {% if item.key == otree_master %}{{ otree_domain }} *.{{otree_domain}}{% else %}{{ item.key }}.{{otree_domain}}{% endif %};
ssl_certificate
/etc/
ssl
/
cert
s/localhost.crt
;
ssl_certificate_key
/etc/ssl/private/localhost.key
;
ssl_certificate
{{
ssl
_
cert
ificate_path }}
;
ssl_certificate_key
{{ ssl_certificate_key_path }}
;
location / {
access_log off;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment