repo init

This commit is contained in:
mpavlov
2024-09-29 01:35:45 +03:00
parent 9cca9c8ec9
commit 42a176bd7c
3 changed files with 10 additions and 2 deletions

2
Jenkinsfile vendored
View File

@@ -8,7 +8,7 @@ pipeline {
base64File(name: "rootca", description: "RootCA (only for 'Install Rproxy')")
base64File(name: "rootca_key", description: "RootCA key (only for 'Install Rproxy')")
booleanParam(name: "config_add", defaultValue: true, description: "Add config")
string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name (for 'Add config' job only)")
string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name, ex. jenkins (for 'Add config' job only)")
string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port (for 'Add config' job only)")
string(name: "rproxy_service_address", defaultValue: "", trim: true, description: "Service address (for 'Add config' job only)")

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"

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 }}/certs:/repo
ports:
- 443:443
- 80:80
- 80:80
- 9000:9000