diff --git a/roles/rproxy/files/repo.conf b/roles/rproxy/files/repo.conf new file mode 100644 index 0000000..d1fd6dc --- /dev/null +++ b/roles/rproxy/files/repo.conf @@ -0,0 +1,12 @@ +server { + listen 9000; + server_name _; + root /repo; + + location / { + charset utf-8; + autoindex on; + autoindex_exact_size off; + autoindex_localtime on; + } +} \ No newline at end of file diff --git a/roles/rproxy/tasks/main.yml b/roles/rproxy/tasks/main.yml index 2301409..8e705dc 100644 --- a/roles/rproxy/tasks/main.yml +++ b/roles/rproxy/tasks/main.yml @@ -72,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 diff --git a/roles/rproxy/templates/docker-compose.yml.j2 b/roles/rproxy/templates/docker-compose.yml.j2 index 1bd02d9..c589e87 100644 --- a/roles/rproxy/templates/docker-compose.yml.j2 +++ b/roles/rproxy/templates/docker-compose.yml.j2 @@ -9,7 +9,7 @@ services: - {{ rproxy_dir }}/nginx.conf:/etc/nginx/nginx.conf - {{ rproxy_dir }}/sites:/etc/nginx/sites - {{ rproxy_dir }}/certs:/etc/nginx/certs - - {{ rproxy_dir }}/certs:/repo + - {{ rproxy_dir }}/repo:/repo ports: - 443:443 - 80:80