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