Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
800b340a
Commit
800b340a
authored
7 years ago
by
Rachel TORCHET
Browse files
Options
Downloads
Plain Diff
resolve conflict
Former-commit-id: 4ed03cc594e1a69601c013110068bb373d3bd3ba
parents
aaf037bc
d180f425
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/deploy.yaml
+13
-2
13 additions, 2 deletions
ansible/deploy.yaml
ippisite/ippidb/views.py
+2
-0
2 additions, 0 deletions
ippisite/ippidb/views.py
with
15 additions
and
2 deletions
ansible/deploy.yaml
+
13
−
2
View file @
800b340a
...
...
@@ -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='
<
Lo
cation '/'>\nRequire all denied\nRequire ip 10.6.108.60\nRequire ip 10.6.107.22\nRequire ip 157.99
\n</Location>\n'
line='Lo
adModule 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
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/views.py
+
2
−
0
View file @
800b340a
...
...
@@ -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
):
...
...
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