config.py 10.2 KB
Newer Older
Daniel Martí's avatar
Daniel Martí committed
1
#!/usr/bin/env python3
2

3 4
# Copy this file to config.py, then amend the settings below according to
# your system configuration.
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
5

6
# Custom path to the Android SDK, defaults to $ANDROID_HOME
Daniel Martí's avatar
Daniel Martí committed
7
# sdk_path = "$ANDROID_HOME"
8

Boris Kraut's avatar
Boris Kraut committed
9
# Custom paths to various versions of the Android NDK, defaults to 'r12b' set
10 11
# to $ANDROID_NDK. Most users will have the latest at $ANDROID_NDK, which is
# used by default. If a version is missing or assigned to None, it is assumed
12 13
# not installed.
# ndk_paths = {
14
#     'r9b': None,
Daniel Martí's avatar
Daniel Martí committed
15
#     'r10e': None,
Boris Kraut's avatar
Boris Kraut committed
16
#     'r11c': None,
Daniel Martí's avatar
Daniel Martí committed
17
#     'r12b': "$ANDROID_NDK",
18
# }
19

est's avatar
est committed
20 21 22
# Path to the Qt SDK. It is of the form "/path/to/Qt5.7.0/5.7"
# qt_sdk_path = ""

23
# java_paths = {
Daniel Martí's avatar
Daniel Martí committed
24
#     '1.8': "/usr/lib/jvm/java-8-openjdk",
25 26
# }

27
# Build tools version to be used
28
# build_tools = "25.0.0"
29

30 31 32 33
# Force all build to use the above version of build -tools, good for testing
# builds without having all of the possible build-tools installed.
# force_build_tools = True

34
# Command or path to binary for running Ant
35
# ant = "ant"
36

37
# Command or path to binary for running maven 3
38
# mvn3 = "mvn"
Daniel Martí's avatar
Daniel Martí committed
39

40
# Command or path to binary for running Gradle
41
# gradle = "gradle"
42

43 44 45 46 47
# Set the maximum age (in days) of an index that a client should accept from
# this repo. Setting it to 0 or not setting it at all disables this
# functionality. If you do set this to a non-zero value, you need to ensure
# that your index is updated much more frequently than the specified interval.
# The same policy is applied to the archive repo, if there is one.
48
# repo_maxage = 0
49

50
repo_url = "https://MyFirstFDroidRepo.org/fdroid/repo"
51
repo_name = "My First F-Droid Repo Demo"
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
52
repo_icon = "fdroid-icon.png"
53
repo_description = """
54
This is a repository of apps to be used with F-Droid. Applications in this
55 56 57 58
repository are either official binaries built by the original application
developers, or are binaries built from source by the admin of f-droid.org
using the tools on https://gitlab.com/u/fdroid.
"""
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
59

60 61 62 63 64 65
# As above, but for the archive repo.
# archive_older sets the number of versions kept in the main repo, with all
# older ones going to the archive. Set it to 0, and there will be no archive
# repository, and no need to define the other archive_ values.
archive_older = 3
archive_url = "https://f-droid.org/archive"
66
archive_name = "My First F-Droid Archive Demo"
67
archive_icon = "fdroid-icon.png"
68 69 70
archive_description = """
The repository of older versions of applications from the main demo repository.
"""
71

72
# Normally, all apps are collected into a single app repository, like on
73 74
# https://f-droid.org. For certain situations, it is better to make a repo
# that is made up of APKs only from a single app. For example, an automated
75 76 77
# build server that publishes nightly builds.
# per_app_repos = True

78
# `fdroid update` will create a link to the current version of a given app.
79
# This provides a static path to the current APK. To disable the creation of
80 81 82 83
# this link, uncomment this:
# make_current_version_link = False

# By default, the "current version" link will be based on the "Name" of the
84
# app from the metadata. You can change it to use a different field from the
85 86
# metadata here:
# current_version_name_source = 'id'
87

88
# Optionally, override home directory for gpg
89
# gpghome = '/home/fdroid/somewhere/else/.gnupg'
90

91
# The ID of a GPG key for making detached signatures for apks. Optional.
Daniel Martí's avatar
Daniel Martí committed
92
# gpgkey = '1DBA2E89'
93

94
# The key (from the keystore defined below) to be used for signing the
95 96
# repository itself. This is the same name you would give to keytool or
# jarsigner using -alias. (Not needed in an unsigned repository).
Daniel Martí's avatar
Daniel Martí committed
97
# repo_keyalias = "fdroidrepo"
98

99 100 101 102 103 104 105
# Optionally, the public key for the key defined by repo_keyalias above can
# be specified here. There is no need to do this, as the public key can and
# will be retrieved from the keystore when needed. However, specifying it
# manually can allow some processing to take place without access to the
# keystore.
# repo_pubkey = "..."

106 107 108
# The keystore to use for release keys when building. This needs to be
# somewhere safe and secure, and backed up!  The best way to manage these
# sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
109
# configure F-Droid to use a smartcard, set the keystore file using the keyword
110
# "NONE" (i.e. keystore = "NONE"). That makes Java find the keystore on the
111
# smartcard based on 'smartcardoptions' below.
Daniel Martí's avatar
Daniel Martí committed
112
# keystore = "~/.local/share/fdroidserver/keystore.jks"
113 114 115

# You should not need to change these at all, unless you have a very
# customized setup for using smartcards in Java with keytool/jarsigner
Daniel Martí's avatar
Daniel Martí committed
116
# smartcardoptions = "-storetype PKCS11 -providerName SunPKCS11-OpenSC \
117 118
#    -providerClass sun.security.pkcs11.SunPKCS11 \
#    -providerArg opensc-fdroid.cfg"
119

120
# The password for the keystore (at least 6 characters). If this password is
121
# different than the keypass below, it can be OK to store the password in this
122
# file for real use. But in general, sensitive passwords should not be stored
123
# in text files!
Daniel Martí's avatar
Daniel Martí committed
124
# keystorepass = "password1"
125 126

# The password for keys - the same is used for each auto-generated key as well
127
# as for the repository key. You should not normally store this password in a
128
# file since it is a sensitive password.
Daniel Martí's avatar
Daniel Martí committed
129
# keypass = "password2"
130

Daniel Martí's avatar
Daniel Martí committed
131
# The distinguished name used for all keys.
132
# keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
133

Daniel Martí's avatar
Daniel Martí committed
134 135
# Use this to override the auto-generated key aliases with specific ones
# for particular applications. Normally, just leave it empty.
136 137
# keyaliases = {}
# keyaliases['com.example.app'] = 'example'
Daniel Martí's avatar
Daniel Martí committed
138 139
# You can also force an app to use the same key alias as another one, using
# the @ prefix.
140
# keyaliases['com.example.another.plugin'] = '@com.example.another'
141

142

143
# The full path to the root of the repository. It must be specified in
144
# rsync/ssh format for a remote host/path. This is used for syncing a locally
145
# generated repo to the server that is it hosted on. It must end in the
146
# standard public repo name of "/fdroid", but can be in up to three levels of
147
# sub-directories (i.e. /var/www/packagerepos/fdroid). You can include
148 149
# multiple servers to sync to by wrapping the whole thing in {} or [], and
# including the serverwebroot strings in a comma-separated list.
150
#
Daniel Martí's avatar
Daniel Martí committed
151
# serverwebroot = '[email protected]:/var/www/fdroid'
152 153 154 155
# serverwebroot = {
#     'foo.com:/usr/share/nginx/www/fdroid',
#     'bar.info:/var/www/fdroid',
#     }
156

157 158 159 160 161 162 163 164 165 166 167 168
# Any mirrors of this repo, for example all of the servers declared in
# serverwebroot, will automatically be used by the client.  If one
# mirror is not working, then the client will try another.  If the
# client has Tor enabled, then the client will prefer mirrors with
# .onion addresses. This base URL will be used for both the main repo
# and the archive, if it is enabled.  So these URLs should end in the
# 'fdroid' base of the F-Droid part of the web server like serverwebroot.
#
# mirrors = {
#     'https://foo.bar/fdroid',
#     'http://foobarfoobarfoobar.onion/fdroid',
# }
169

170
# optionally specific which identity file to use when using rsync over SSH
171
#
172 173
# identity_file = '~/.ssh/fdroid_id_rsa'

174 175 176

# If you are running the repo signing process on a completely offline machine,
# which provides the best security, then you can specify a folder to sync the
177 178 179
# repo to when running `fdroid server update`. This is most likely going to
# be a USB thumb drive, SD Card, or some other kind of removable media. Make
# sure it is mounted before running `fdroid server update`. Using the
180 181 182 183 184 185
# standard folder called 'fdroid' as the specified folder is recommended, like
# with serverwebroot.
#
# local_copy_dir = '/media/MyUSBThumbDrive/fdroid'


186 187
# If you are using local_copy_dir on an offline build/signing server, once the
# thumb drive has been plugged into the online machine, it will need to be
188
# synced to the copy on the online machine. To make that happen
189 190 191 192 193
# automatically, set sync_from_local_copy_dir to True:
#
# sync_from_local_copy_dir = True


194 195 196 197 198
# To upload the repo to an Amazon S3 bucket using `fdroid server update`.
# Warning, this deletes and recreates the whole fdroid/ directory each
# time. This is based on apache-libcloud, which supports basically all cloud
# storage services, so it should be easy to port the fdroid server tools to
# any of them.
199
#
Daniel Martí's avatar
Daniel Martí committed
200 201 202
# awsbucket = 'myawsfdroid'
# awsaccesskeyid = 'SEE0CHAITHEIMAUR2USA'
# awssecretkey = 'yourverysecretkeywordpassphraserighthere'
203

204

205
# If you want to force 'fdroid server' to use a non-standard serverwebroot
206
#
Daniel Martí's avatar
Daniel Martí committed
207
# nonstandardwebroot = False
208

209

210 211 212 213 214 215
# The build logs can be posted to a mediawiki instance, like on f-droid.org.
# wiki_protocol = "http"
# wiki_server = "server"
# wiki_path = "/wiki/"
# wiki_user = "login"
# wiki_password = "1234"
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
216

Daniel Martí's avatar
Daniel Martí committed
217 218 219
# Only set this to true when running a repository where you want to generate
# stats, and only then on the master build servers, not a development
# machine.
220
# update_stats = True
221

222 223
# When used with stats, this is a list of IP addresses that are ignored for
# calculation purposes.
224
# stats_ignore = []
225

226
# Server stats logs are retrieved from. Required when update_stats is True.
227
# stats_server = "example.com"
228 229

# User stats logs are retrieved from. Required when update_stats is True.
230
# stats_user = "bob"
231

Daniel Martí's avatar
Daniel Martí committed
232
# Use the following to push stats to a Carbon instance:
233 234 235
# stats_to_carbon = False
# carbon_host = '0.0.0.0'
# carbon_port = 2003
236

Daniel Martí's avatar
Daniel Martí committed
237 238
# Set this to true to always use a build server. This saves specifying the
# --server option on dedicated secure build server hosts.
239
# build_server_always = True
240

241
# By default, fdroid will use YAML .yml and the custom .txt metadata formats. It
242 243
# is also possible to have metadata in JSON and XML by adding 'json' and
# 'xml'.
244
# accepted_formats = ['txt', 'yml']
245

246 247
# Limit in number of characters that fields can take up
# Only the fields listed here are supported, defaults shown
248 249 250 251
# char_limits = {
#     'Summary': 80,
#     'Description': 4000,
# }
252 253

# It is possible for the server operator to specify lists of apps that
254 255 256
# must be installed or uninstalled on the client (aka "push installs).
# If the user has opted in, or the device is already setup to respond
# to these requests, then F-Droid will automatically install/uninstall
257 258 259 260 261 262 263 264 265
# the packageNames listed.  This is protected by the same signing key
# as the app index metadata.
#
# install_list = {
#     'at.bitfire.davdroid',
#     'com.fsck.k9',
#     'us.replicant',
# }
#
266
# uninstall_list = {
267 268 269
#     'com.facebook.orca',
#     'com.android.vending',
# }