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