chiark / gitweb /
8b9e64a286bd66f308b3cdbe7bc9718dc6fbd82c
[fdroidserver.git] / sampleconfigs / config.sample.py
1 #!/usr/bin/env python2
2
3 # Copy this file to config.py, then amend the settings below according to
4 # your system configuration.
5
6 # Path to the Android SDK, $ANDROID_HOME already set on most systems
7 #sdk_path = "/path/to/android-sdk"
8 sdk_path = "$ANDROID_HOME"
9
10 # Path to the Android NDK, $ANDROID_NDK already set on most systems
11 # Legacy toolchains are only needed by some apps
12 #ndk_path = "/path/to/android-ndk"
13 ndk_path = "$ANDROID_NDK"
14
15 # Build tools version to be used
16 build_tools = "19.0.1"
17
18 # Command for running maven 3 (command or full path)
19 mvn3 = "mvn3"
20
21 # Command for running Gradle (command or full path)
22 gradle = "gradle"
23
24 # Set the maximum age (in days) of an index that a client should accept from
25 # this repo. Setting it to 0 or not setting it at all disables this
26 # functionality. If you do set this to a non-zero value, you need to ensure
27 # that your index is updated much more frequently than the specified interval.
28 # The same policy is applied to the archive repo, if there is one.
29 repo_maxage = 0
30
31 repo_url = "https://f-droid.org/repo"
32 repo_name = "F-Droid"
33 repo_icon = "fdroid-icon.png"
34 repo_description = """
35 The official repository of the F-Droid client. Applications in this repository
36 are either official binaries built by the original application developers, or
37 are binaries built from source by the admin of f-droid.org using the tools on
38 https://gitorious.org/f-droid.
39 """
40
41 # As above, but for the archive repo.
42 # archive_older sets the number of versions kept in the main repo, with all
43 # older ones going to the archive. Set it to 0, and there will be no archive
44 # repository, and no need to define the other archive_ values.
45 archive_older = 3
46 archive_url = "https://f-droid.org/archive"
47 archive_name = "F-Droid Archive"
48 archive_icon = "fdroid-icon.png"
49 archive_description = """
50 The archive repository of the F-Droid client. This contains older versions
51 of applications from the main repository.
52 """
53
54
55 #The key (from the keystore defined below) to be used for signing the
56 #repository itself. Can be None for an unsigned repository.
57 repo_keyalias = None
58
59 #The keystore to use for release keys when building. This needs to be
60 #somewhere safe and secure, and backed up!
61 keystore = "/home/me/somewhere/my.keystore"
62
63 #The password for the keystore (at least 6 characters).
64 keystorepass = "password1"
65
66 #The password for keys - the same is used for each auto-generated key
67 #as well as for the repository key.
68 keypass = "password2"
69
70 #The distinguished name used for all keys.
71 keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
72
73 #Use this to override the auto-generated key aliases with specific ones
74 #for particular applications. Normally, just leave it empty.
75 keyaliases = {}
76 keyaliases['com.example.app'] = 'example'
77 #You can also force an app to use the same key alias as another one, using
78 #the @ prefix.
79 keyaliases['com.example.another.plugin'] = '@com.example.another'
80
81 # The full path to the root of the repository.  It must be specified in
82 # rsync/ssh format for a remote host/path. This is used for syncing a locally
83 # generated repo to the server that is it hosted on.  It must end in the
84 # standard public repo name of "/fdroid", but can be in up to three levels of
85 # sub-directories (i.e. /var/www/packagerepos/fdroid).
86 serverwebroot = 'user@example:/var/www/fdroid'
87
88 # If you want to force 'fdroid server' to use a non-standard serverwebroot
89 #nonstandardwebroot = True
90
91 #Wiki details
92 wiki_protocol = "http"
93 wiki_server = "server"
94 wiki_path = "/wiki/"
95 wiki_user = "login"
96 wiki_password = "1234"
97
98 #Only set this to true when running a repository where you want to generate
99 #stats, and only then on the master build servers, not a development
100 #machine.
101 update_stats = False
102
103 #Use the following to push stats to a Carbon instance:
104 stats_to_carbon = False
105 carbon_host = '0.0.0.0'
106 carbon_port = 2003
107
108 #Set this to true to always use a build server. This saves specifying the
109 #--server option on dedicated secure build server hosts.
110 build_server_always = False
111
112 # Limit in number of characters that fields can take up
113 # Only the fields listed here are supported, defaults shown
114 char_limits: {
115     'Summary' : 40
116     'Description' : 1500
117 }