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:
2024-09-29 02:27:11 +03:00
3 changed files with 28 additions and 1 deletions

View 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;
}
}

View File

@@ -51,6 +51,12 @@
path: "{{ rproxy_dir }}/sites"
state: directory
- name: Create repo dir
ansible.builtin.file:
path: "{{ rproxy_dir }}/repo"
state: directory
mode: 0777
- name: Create certs dir
ansible.builtin.file:
path: "{{ rproxy_dir }}/certs"
@@ -66,6 +72,11 @@
src: files/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
ansible.builtin.copy:
src: files/RootCA.crt

View File

@@ -9,6 +9,8 @@ services:
- {{ rproxy_dir }}/nginx.conf:/etc/nginx/nginx.conf
- {{ rproxy_dir }}/sites:/etc/nginx/sites
- {{ rproxy_dir }}/certs:/etc/nginx/certs
- {{ rproxy_dir }}/repo:/repo
ports:
- 443:443
- 80:80
- 80:80
- 9000:9000