Merge pull request 'dev' (#13) from dev into master
Reviewed-on: http://89.110.105.223:8080/IaC/rproxy/pulls/13
This commit is contained in:
14
roles/rproxy/files/repo.conf
Normal file
14
roles/rproxy/files/repo.conf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
server {
|
||||||
|
listen 9000;
|
||||||
|
server_name _;
|
||||||
|
root /repo;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
charset utf-8;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_localtime on;
|
||||||
|
# auth_basic "Needs to auth";
|
||||||
|
# auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -51,6 +51,12 @@
|
|||||||
path: "{{ rproxy_dir }}/sites"
|
path: "{{ rproxy_dir }}/sites"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: Create repo dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ rproxy_dir }}/repo"
|
||||||
|
state: directory
|
||||||
|
mode: 0777
|
||||||
|
|
||||||
- name: Create certs dir
|
- name: Create certs dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ rproxy_dir }}/certs"
|
path: "{{ rproxy_dir }}/certs"
|
||||||
@@ -66,6 +72,11 @@
|
|||||||
src: files/nginx.conf
|
src: files/nginx.conf
|
||||||
dest: "{{ rproxy_dir }}/nginx.conf"
|
dest: "{{ rproxy_dir }}/nginx.conf"
|
||||||
|
|
||||||
|
- name: Copy repo.conf
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: files/repo.conf
|
||||||
|
dest: "{{ rproxy_dir }}/sites/repo.conf"
|
||||||
|
|
||||||
- name: Copy RootCA certificate
|
- name: Copy RootCA certificate
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: files/RootCA.crt
|
src: files/RootCA.crt
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ services:
|
|||||||
- {{ rproxy_dir }}/nginx.conf:/etc/nginx/nginx.conf
|
- {{ rproxy_dir }}/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- {{ rproxy_dir }}/sites:/etc/nginx/sites
|
- {{ rproxy_dir }}/sites:/etc/nginx/sites
|
||||||
- {{ rproxy_dir }}/certs:/etc/nginx/certs
|
- {{ rproxy_dir }}/certs:/etc/nginx/certs
|
||||||
|
- {{ rproxy_dir }}/repo:/repo
|
||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
- 80:80
|
- 80:80
|
||||||
|
- 9000:9000
|
||||||
Reference in New Issue
Block a user