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