done basic repo

This commit is contained in:
mpavlov
2024-09-29 02:15:56 +03:00
parent e3ca04efd0
commit 7b32b19b2a
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
server {
listen 9000;
server_name _;
root /repo;
location / {
charset utf-8;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}

View File

@@ -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

View File

@@ -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