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
54a59f3a
Commit
54a59f3a
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
ansible WIP, restrict access by IP and collect static as ippidb
Former-commit-id: f9e46c934f318c2c40bed97e57781ff342159101
parent
41af071f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/deploy.yaml
+6
-0
6 additions, 0 deletions
ansible/deploy.yaml
with
6 additions
and
0 deletions
ansible/deploy.yaml
+
6
−
0
View file @
54a59f3a
...
...
@@ -16,6 +16,7 @@
-
name
:
install python requirements
pip
:
requirements=/home/ippidb/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
-
name
:
collect static files
become_user
:
ippidb
django_manage
:
command
:
"
collectstatic"
app_path
:
"
/home/ippidb/iPPIDB/ippisite"
...
...
@@ -23,6 +24,11 @@
django_manage
:
command
:
"
runmodwsgi
--setup-only
--port=80
--user
ippidb
--group
wheel
--server-root=/etc/ippidb-80"
app_path
:
"
/home/ippidb/iPPIDB/ippisite"
-
name
:
restrict access to the web server to specific IPs
lineinfile
:
dest=/etc/ippidb-80/httpd.conf
regexp=''
insertafter=EOF
line='<Location '/'>\nRequire all denied\nRequire ip 10.6.108.60\nRequire ip 157.99\n</Location>\n'
-
name
:
copy systemd service file for IPPIDB-web
copy
:
remote_src
:
true
...
...
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