6 Commits
v1.0 ... v1.2

2 changed files with 14 additions and 3 deletions

11
Jenkinsfile vendored
View File

@@ -41,9 +41,14 @@ pipeline {
}
steps {
script {
def userInput = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')]
writeFile(file: 'roles/rproxy/files/RootCA.crt', text: new String(userInput['rootca'].decodeBase64()))
writeFile(file: 'roles/rproxy/files/RootCA.key', text: new String(userInput['rootca_key'].decodeBase64()))
withCredentials([
file(credentialsId: "ROOTCA_CERT", variable: "rootca"),
file(credentialsId: "ROOTCA_KEY", variable: "rootca_key")
]) {
sh(script: "cp ${rootca} roles/gitlab/files/RootCA.crt", returnStdout: false)
sh(script: "cp ${rootca_key} roles/gitlab/files/RootCA.key", returnStdout: false)
sh(script: "chmod 700 roles/patroni/files/RootCA*", returnStdout: false)
}
}
}
}

View File

@@ -16,6 +16,12 @@ server {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
dav_methods PUT DELETE MKCOL;
dav_access user:rw group:r all:r;
create_full_put_path on;
client_max_body_size 100m;
# auth_basic "Needs to auth";
# auth_basic_user_file /etc/nginx/.htpasswd;
}