mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 13:06:57 -06:00
added readme file to install JCR with Helm with external DBs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{% if artifactory_license1 |length %}
|
||||
{{ artifactory_license1 }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if artifactory_license2 |length %}
|
||||
{{ artifactory_license2 }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if artifactory_license3 |length %}
|
||||
{{ artifactory_license3 }}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if artifactory_license4 |length %}
|
||||
{{ artifactory_license4 }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,33 @@
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_certificate {{ ssl_dir }}/cert.pem;
|
||||
ssl_certificate_key {{ key_dir }}/cert.key;
|
||||
ssl_session_cache shared:SSL:1m;
|
||||
ssl_prefer_server_ciphers on;
|
||||
## server configuration
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen 80 ;
|
||||
server_name {{ artifactory_server_name }}.{{ certificate_domain }} ~(?<repo>.+)\.{{ certificate_domain }};
|
||||
if ($http_x_forwarded_proto = '') {
|
||||
set $http_x_forwarded_proto $scheme;
|
||||
}
|
||||
## Application specific logs
|
||||
## access_log /var/log/nginx/artifactory-access.log timing;
|
||||
## error_log /var/log/nginx/artifactory-error.log;
|
||||
rewrite ^/$ /artifactory/webapp/ redirect;
|
||||
rewrite ^/artifactory/?(/webapp)?$ /artifactory/webapp/ redirect;
|
||||
rewrite ^/(v2)/(.*) /artifactory/$1/$2;
|
||||
chunked_transfer_encoding on;
|
||||
client_max_body_size 0;
|
||||
location /artifactory/ {
|
||||
proxy_read_timeout 900;
|
||||
proxy_pass_header Server;
|
||||
proxy_cookie_path ~*^/.* /;
|
||||
proxy_pass http://{{ artifactory_hostname }}:8081/artifactory/;
|
||||
proxy_set_header X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host:$server_port/artifactory;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<config version="2">
|
||||
<chain> <!--template="cluster-s3"-->
|
||||
<provider id="cache-fs-eventual-s3" type="cache-fs">
|
||||
<provider id="sharding-cluster-eventual-s3" type="sharding-cluster">
|
||||
<sub-provider id="eventual-cluster-s3" type="eventual-cluster">
|
||||
<provider id="retry-s3" type="retry">
|
||||
<provider id="s3" type="s3"/>
|
||||
</provider>
|
||||
</sub-provider>
|
||||
<dynamic-provider id="remote-s3" type="remote"/>
|
||||
</provider>
|
||||
</provider>
|
||||
</chain>
|
||||
|
||||
<provider id="sharding-cluster-eventual-s3" type="sharding-cluster">
|
||||
<readBehavior>crossNetworkStrategy</readBehavior>
|
||||
<writeBehavior>crossNetworkStrategy</writeBehavior>
|
||||
<redundancy>2</redundancy>
|
||||
<lenientLimit>1</lenientLimit>
|
||||
<property name="zones" value="local,remote"/>
|
||||
</provider>
|
||||
|
||||
<provider id="remote-s3" type="remote">
|
||||
<zone>remote</zone>
|
||||
</provider>
|
||||
|
||||
<provider id="eventual-cluster-s3" type="eventual-cluster">
|
||||
<zone>local</zone>
|
||||
</provider>
|
||||
|
||||
<provider id="s3" type="s3">
|
||||
<endpoint>{{ s3_endpoint }}</endpoint>
|
||||
<identity>{{ s3_access_key }}</identity>
|
||||
<credential>{{ s3_access_secret_key }}</credential>
|
||||
<bucketName>{{ s3_bucket }}</bucketName>
|
||||
<property name="s3service.server-side-encryption" value="AES256"/>
|
||||
</provider>
|
||||
</config>
|
||||
@@ -0,0 +1 @@
|
||||
{{ certificate_key | b64decode }}
|
||||
@@ -0,0 +1,2 @@
|
||||
{{ certificate | b64decode }}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
type={{ db_type }}
|
||||
driver={{ db_driver }}
|
||||
url=jdbc:mysql://{{ db_ipaddr }}:3306/{{ db_name }}?characterEncoding=UTF-8&elideSetAutoCommits=true&verifyServerCertificate=true&useSSL=true&requireSSL=true
|
||||
username={{ db_user }}
|
||||
password={{ db_password }}
|
||||
@@ -0,0 +1,9 @@
|
||||
{% if art_primary == True %}
|
||||
node.id=primary
|
||||
{% else %}
|
||||
node.id={{ ansible_hostname }}
|
||||
{% endif %}
|
||||
artifactory.ha.data.dir=/var/opt/jfrog/artifactory/data
|
||||
context.url=http://{{ ansible_default_ipv4.address }}:8081/artifactory
|
||||
membership.port=0
|
||||
primary={{ art_primary }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ master_key }}
|
||||
Reference in New Issue
Block a user