Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 191fe274bf | |||
| ce83125591 | |||
| 0aa2ab5c69 | |||
| 821cc7502c | |||
| 0edadd8325 | |||
| e699b31105 |
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -41,9 +41,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def userInput = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')]
|
withCredentials([
|
||||||
writeFile(file: 'roles/rproxy/files/RootCA.crt', text: new String(userInput['rootca'].decodeBase64()))
|
file(credentialsId: "ROOTCA_CERT", variable: "rootca"),
|
||||||
writeFile(file: 'roles/rproxy/files/RootCA.key', text: new String(userInput['rootca_key'].decodeBase64()))
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ server {
|
|||||||
autoindex on;
|
autoindex on;
|
||||||
autoindex_exact_size off;
|
autoindex_exact_size off;
|
||||||
autoindex_localtime on;
|
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 "Needs to auth";
|
||||||
# auth_basic_user_file /etc/nginx/.htpasswd;
|
# auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user