Skip to content
Snippets Groups Projects
Commit 800b340a authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

resolve conflict

Former-commit-id: 4ed03cc594e1a69601c013110068bb373d3bd3ba
parents aaf037bc d180f425
No related branches found
No related tags found
No related merge requests found
......@@ -92,11 +92,22 @@
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
settings: "ippisite.{{ ansible_hostname }}_settings"
# FIXME: this should obviously be removed before switching to prod. env.
- name: restrict access to the web server to specific IPs
- name: install passlib for htpasswd in ansible
yum: name=python-passlib state=installed
- file:
path: /etc/ippidb-80/passwdfile
state: absent
- htpasswd:
path: /etc/ippidb-80/passwdfile
name: ippidb
password: 'LeroyMerlin' #FIXME FIXME should be secret
owner: "{{ deploy_user_name }}"
mode: 0640
- name: add httpd conf to use HTTP authentication
lineinfile: dest=/etc/ippidb-80/httpd.conf
regexp=''
insertafter=EOF
line='<Location '/'>\nRequire all denied\nRequire ip 10.6.108.60\nRequire ip 10.6.107.22\nRequire ip 157.99\n</Location>\n'
line='LoadModule auth_basic_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_auth_basic.so'\nLoadModule authn_core_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authn_core.so'\nLoadModule authn_file_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authn_file.so'\nLoadModule authz_core_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authz_core.so'\nLoadModule authz_user_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_authz_user.so'\n<Location />\nAuthType Basic\nAuthName "Restricted Files"\nAuthUserFile /etc/ippidb-80/passwdfile\nRequire valid-user\n</Location>\n'
- name: copy systemd service file for IPPIDB-web
copy:
remote_src: true
......
......@@ -96,6 +96,8 @@ class IppiWizard(NamedUrlSessionWizardView):
if step == 'ProteinDomainComplexForm':
pks = self.storage.get_step_data('PDBForm').get('pks')
print("Proteins",Protein.objects.filter(id__in=pks))
if step == 'PpiForm':
initial['pdb_id'] = self.storage.get_step_data('PDBForm').get('PDBForm-pdb_id')
return self.initial_dict.get(step, initial)
def process_step(self, form):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment