| {%- from "artifactory/map.jinja" import server with context %} |
| # |
| # |
| # Artifactory is a binaries repository manager. |
| # Copyright (C) 2016 JFrog Ltd. |
| # |
| # Artifactory is free software: you can redistribute it and/or modify |
| # it under the terms of the GNU Affero General Public License as published by |
| # the Free Software Foundation, either version 3 of the License, or |
| # (at your option) any later version. |
| # |
| # Artifactory is distributed in the hope that it will be useful, |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| # GNU Affero General Public License for more details. |
| # |
| # You should have received a copy of the GNU Affero General Public License |
| # along with Artifactory. If not, see <http://www.gnu.org/licenses/>. |
| # |
| # |
| |
| {% if server.database.engine == 'derby' %} |
| |
| type=derby |
| url=jdbc:derby:{db.home};create=true |
| driver=org.apache.derby.jdbc.EmbeddedDriver |
| |
| {%- elif server.database.engine == 'postgresql' %} |
| |
| type=postgresql |
| driver=org.postgresql.Driver |
| url=jdbc:postgresql://{{ server.database.host }}:{{ server.database.port }}/{{ server.database.name }} |
| username={{ server.database.user }} |
| password={{ server.database.password }} |
| |
| {%- elif server.database.engine == 'mysql' %} |
| |
| type=mysql |
| driver=com.mysql.jdbc.Driver |
| url=jdbc:mysql://{{ server.database.host }}:{{ server.database.port }}/{{ server.database.name }}?characterEncoding=UTF-8&elideSetAutoCommits=true |
| username={{ server.database.user }} |
| password={{ server.database.password }} |
| |
| {%- endif %} |
| |
| ## Determines where the actual artifacts binaries are stored. Available options: |
| ## filesystem - binaries are stored in the filesystem (recommended, default) |
| ## fullDb - binaries are stored as blobs in the db, filesystem is used for caching |
| ## cachedFS - binaries are stored in the filesystem, but a front cache (with faster access) is added |
| ## IMPORTANT NOTE: This property should not be change after the initial setup. To change binaries storage you have to export and import |
| binary.provider.type=filesystem |
| |
| ## Determines the maximum filesystem cache size in bytes when using binary provider type fullDb or cachedFS. Default is 5GB |
| ## Supported units are TB (terabytes), GB (gigabytes), MB (megabytes) and KB (kilobytes) |
| #binary.provider.cache.maxSize=5GB |