-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the informaiton for amoksecurity.wtf to the build.
- Loading branch information
1 parent
7de7234
commit a0ade07
Showing
4 changed files
with
31 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
- name: Setup hosts file entries | ||
lineinfile: | ||
dest: /etc/hosts | ||
line: '127.0.0.1 amoksecurity.wtf' | ||
|
||
- name: Create webroot for amoksecurity.wtf | ||
file: | ||
path: /var/www/amoksecurity | ||
state: directory | ||
owner: samurai | ||
group: samurai | ||
become: yes | ||
|
||
- name: Setup nginx reverse-proxy config for amoksecurity | ||
copy: | ||
dest: /etc/nginx/conf.d/amoksecurity.conf | ||
content: | | ||
server { | ||
listen 80; | ||
server_name amoksecurity.wtf; | ||
location / { | ||
root /var/www/amoksecurity; | ||
} | ||
} | ||
mode: 0744 | ||
notify: | ||
- restart nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters