chiark / gitweb /
9d0b8d0456b7f4b43de8b9bd3b7e4c62702b634e
[fdroidserver.git] / examples / config.py
1 #!/usr/bin/env python3
2
3 # Copy this file to config.py, then amend the settings below according to
4 # your system configuration.
5
6 # Custom path to the Android SDK, defaults to $ANDROID_HOME
7 # sdk_path = "$ANDROID_HOME"
8
9 # Custom paths to various versions of the Android NDK, defaults to 'r12b' set
10 # to $ANDROID_NDK. Most users will have the latest at $ANDROID_NDK, which is
11 # used by default. If a version is missing or assigned to None, it is assumed
12 # not installed.
13 # ndk_paths = {
14 #     'r9b': None,
15 #     'r10e': None,
16 #     'r11c': None,
17 #     'r12b': "$ANDROID_NDK",
18 #     'r13b': None,
19 #     'r14': None,
20 # }
21
22 # Path to the Qt SDK. It is of the form "/path/to/Qt5.7.0/5.7"
23 # qt_sdk_path = ""
24
25 # java_paths = {
26 #     '1.8': "/usr/lib/jvm/java-8-openjdk",
27 # }
28
29 # Build tools version to be used
30 # build_tools = "25.0.2"
31
32 # Force all build to use the above version of build -tools, good for testing
33 # builds without having all of the possible build-tools installed.
34 # force_build_tools = True
35
36 # Command or path to binary for running Ant
37 # ant = "ant"
38
39 # Command or path to binary for running maven 3
40 # mvn3 = "mvn"
41
42 # Command or path to binary for running Gradle
43 # gradle = "gradle"
44
45 # Set the maximum age (in days) of an index that a client should accept from
46 # this repo. Setting it to 0 or not setting it at all disables this
47 # functionality. If you do set this to a non-zero value, you need to ensure
48 # that your index is updated much more frequently than the specified interval.
49 # The same policy is applied to the archive repo, if there is one.
50 # repo_maxage = 0
51
52 repo_url = "https://MyFirstFDroidRepo.org/fdroid/repo"
53 repo_name = "My First F-Droid Repo Demo"
54 repo_icon = "fdroid-icon.png"
55 repo_description = """
56 This is a repository of apps to be used with F-Droid. Applications in this
57 repository are either official binaries built by the original application
58 developers, or are binaries built from source by the admin of f-droid.org
59 using the tools on https://gitlab.com/u/fdroid.
60 """
61
62 # As above, but for the archive repo.
63 # archive_older sets the number of versions kept in the main repo, with all
64 # older ones going to the archive. Set it to 0, and there will be no archive
65 # repository, and no need to define the other archive_ values.
66 archive_older = 3
67 archive_url = "https://f-droid.org/archive"
68 archive_name = "My First F-Droid Archive Demo"
69 archive_icon = "fdroid-icon.png"
70 archive_description = """
71 The repository of older versions of applications from the main demo repository.
72 """
73
74 # Normally, all apps are collected into a single app repository, like on
75 # https://f-droid.org. For certain situations, it is better to make a repo
76 # that is made up of APKs only from a single app. For example, an automated
77 # build server that publishes nightly builds.
78 # per_app_repos = True
79
80 # `fdroid update` will create a link to the current version of a given app.
81 # This provides a static path to the current APK. To disable the creation of
82 # this link, uncomment this:
83 # make_current_version_link = False
84
85 # By default, the "current version" link will be based on the "Name" of the
86 # app from the metadata. You can change it to use a different field from the
87 # metadata here:
88 # current_version_name_source = 'packageName'
89
90 # Optionally, override home directory for gpg
91 # gpghome = '/home/fdroid/somewhere/else/.gnupg'
92
93 # The ID of a GPG key for making detached signatures for apks. Optional.
94 # gpgkey = '1DBA2E89'
95
96 # The key (from the keystore defined below) to be used for signing the
97 # repository itself. This is the same name you would give to keytool or
98 # jarsigner using -alias. (Not needed in an unsigned repository).
99 # repo_keyalias = "fdroidrepo"
100
101 # Optionally, the public key for the key defined by repo_keyalias above can
102 # be specified here. There is no need to do this, as the public key can and
103 # will be retrieved from the keystore when needed. However, specifying it
104 # manually can allow some processing to take place without access to the
105 # keystore.
106 # repo_pubkey = "..."
107
108 # The keystore to use for release keys when building. This needs to be
109 # somewhere safe and secure, and backed up!  The best way to manage these
110 # sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
111 # configure F-Droid to use a smartcard, set the keystore file using the keyword
112 # "NONE" (i.e. keystore = "NONE"). That makes Java find the keystore on the
113 # smartcard based on 'smartcardoptions' below.
114 # keystore = "~/.local/share/fdroidserver/keystore.jks"
115
116 # You should not need to change these at all, unless you have a very
117 # customized setup for using smartcards in Java with keytool/jarsigner
118 # smartcardoptions = "-storetype PKCS11 -providerName SunPKCS11-OpenSC \
119 #    -providerClass sun.security.pkcs11.SunPKCS11 \
120 #    -providerArg opensc-fdroid.cfg"
121
122 # The password for the keystore (at least 6 characters). If this password is
123 # different than the keypass below, it can be OK to store the password in this
124 # file for real use. But in general, sensitive passwords should not be stored
125 # in text files!
126 # keystorepass = "password1"
127
128 # The password for keys - the same is used for each auto-generated key as well
129 # as for the repository key. You should not normally store this password in a
130 # file since it is a sensitive password.
131 # keypass = "password2"
132
133 # The distinguished name used for all keys.
134 # keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
135
136 # Use this to override the auto-generated key aliases with specific ones
137 # for particular applications. Normally, just leave it empty.
138 # keyaliases = {}
139 # keyaliases['com.example.app'] = 'example'
140 # You can also force an app to use the same key alias as another one, using
141 # the @ prefix.
142 # keyaliases['com.example.another.plugin'] = '@com.example.another'
143
144
145 # The full path to the root of the repository. It must be specified in
146 # rsync/ssh format for a remote host/path. This is used for syncing a locally
147 # generated repo to the server that is it hosted on. It must end in the
148 # standard public repo name of "/fdroid", but can be in up to three levels of
149 # sub-directories (i.e. /var/www/packagerepos/fdroid). You can include
150 # multiple servers to sync to by wrapping the whole thing in {} or [], and
151 # including the serverwebroot strings in a comma-separated list.
152 #
153 # serverwebroot = 'user@example:/var/www/fdroid'
154 # serverwebroot = {
155 #     'foo.com:/usr/share/nginx/www/fdroid',
156 #     'bar.info:/var/www/fdroid',
157 #     }
158
159 # The full URL to a git remote repository. You can include
160 # multiple servers to mirror to by wrapping the whole thing in {} or [], and
161 # including the servergitmirrors strings in a comma-separated list.
162 # Servers listed here will also be automatically inserted in the mirrors list.
163 #
164 # servergitmirrors = 'https://github.com/user/repo'
165 # servergitmirrors = {
166 #     'https://github.com/user/repo',
167 #     'https://gitlab.com/user/repo',
168 #     }
169
170 # Any mirrors of this repo, for example all of the servers declared in
171 # serverwebroot and all the servers declared in servergitmirrors,
172 # will automatically be used by the client.  If one
173 # mirror is not working, then the client will try another.  If the
174 # client has Tor enabled, then the client will prefer mirrors with
175 # .onion addresses. This base URL will be used for both the main repo
176 # and the archive, if it is enabled.  So these URLs should end in the
177 # 'fdroid' base of the F-Droid part of the web server like serverwebroot.
178 #
179 # mirrors = (
180 #     'https://foo.bar/fdroid',
181 #     'http://foobarfoobarfoobar.onion/fdroid',
182 # )
183
184 # optionally specific which identity file to use when using rsync over SSH
185 #
186 # identity_file = '~/.ssh/fdroid_id_rsa'
187
188
189 # If you are running the repo signing process on a completely offline machine,
190 # which provides the best security, then you can specify a folder to sync the
191 # repo to when running `fdroid server update`. This is most likely going to
192 # be a USB thumb drive, SD Card, or some other kind of removable media. Make
193 # sure it is mounted before running `fdroid server update`. Using the
194 # standard folder called 'fdroid' as the specified folder is recommended, like
195 # with serverwebroot.
196 #
197 # local_copy_dir = '/media/MyUSBThumbDrive/fdroid'
198
199
200 # If you are using local_copy_dir on an offline build/signing server, once the
201 # thumb drive has been plugged into the online machine, it will need to be
202 # synced to the copy on the online machine. To make that happen
203 # automatically, set sync_from_local_copy_dir to True:
204 #
205 # sync_from_local_copy_dir = True
206
207
208 # To upload the repo to an Amazon S3 bucket using `fdroid server update`.
209 # Warning, this deletes and recreates the whole fdroid/ directory each
210 # time. This is based on apache-libcloud, which supports basically all cloud
211 # storage services, so it should be easy to port the fdroid server tools to
212 # any of them.
213 #
214 # awsbucket = 'myawsfdroid'
215 # awsaccesskeyid = 'SEE0CHAITHEIMAUR2USA'
216 # awssecretkey = 'yourverysecretkeywordpassphraserighthere'
217
218
219 # If you want to force 'fdroid server' to use a non-standard serverwebroot
220 #
221 # nonstandardwebroot = False
222
223
224 # If you want to upload the release apk file to androidobservatory.org
225 #
226 # uploadto_androidobservatory = False
227
228
229 # If you want to upload the release apk file to virustotal.com
230 # You have to enter your profile apikey to enable the upload.
231 #
232 # virustotal_apikey = "virustotal_apikey"
233
234
235 # The build logs can be posted to a mediawiki instance, like on f-droid.org.
236 # wiki_protocol = "http"
237 # wiki_server = "server"
238 # wiki_path = "/wiki/"
239 # wiki_user = "login"
240 # wiki_password = "1234"
241
242 # Keep a log of all generated index files in a git repo to provide a
243 # "binary transparency" log for anyone to check the history of the
244 # binaries that are published.  This is in the form of a "git remote",
245 # which this machine where `fdroid update` is run has already been
246 # configured to allow push access (e.g. ssh key, username/password, etc)
247 # binary_transparency_remote = "git@gitlab.com:fdroid/binary-transparency-log.git"
248
249 # Only set this to true when running a repository where you want to generate
250 # stats, and only then on the master build servers, not a development
251 # machine. If you want to keep the "added" and "last updated" dates for each
252 # app and APK in your repo, then you should enable this.
253 # update_stats = True
254
255 # When used with stats, this is a list of IP addresses that are ignored for
256 # calculation purposes.
257 # stats_ignore = []
258
259 # Server stats logs are retrieved from. Required when update_stats is True.
260 # stats_server = "example.com"
261
262 # User stats logs are retrieved from. Required when update_stats is True.
263 # stats_user = "bob"
264
265 # Use the following to push stats to a Carbon instance:
266 # stats_to_carbon = False
267 # carbon_host = '0.0.0.0'
268 # carbon_port = 2003
269
270 # Set this to true to always use a build server. This saves specifying the
271 # --server option on dedicated secure build server hosts.
272 # build_server_always = True
273
274 # By default, fdroid will use YAML .yml and the custom .txt metadata formats. It
275 # is also possible to have metadata in JSON by adding 'json'.
276 # accepted_formats = ('txt', 'yml')
277
278 # Limit in number of characters that fields can take up
279 # Only the fields listed here are supported, defaults shown
280 # char_limits = {
281 #     'Summary': 80,
282 #     'Description': 4000,
283 # }
284
285 # It is possible for the server operator to specify lists of apps that
286 # must be installed or uninstalled on the client (aka "push installs).
287 # If the user has opted in, or the device is already setup to respond
288 # to these requests, then F-Droid will automatically install/uninstall
289 # the packageNames listed.  This is protected by the same signing key
290 # as the app index metadata.
291 #
292 # install_list = (
293 #     'at.bitfire.davdroid',
294 #     'com.fsck.k9',
295 #     'us.replicant',
296 # )
297 #
298 # uninstall_list = (
299 #     'com.facebook.orca',
300 #     'com.android.vending',
301 # )