chiark / gitweb /
support cloud storage with libcloud, starting with Amazon AWS S3
[fdroidserver.git] / examples / config.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 # Override the path to the Android SDK, $ANDROID_HOME by default
7 #sdk_path = "/path/to/android-sdk"
8
9 # Override the path to the Android NDK, $ANDROID_NDK by default
10 #ndk_path = "/path/to/android-ndk"
11 # Build tools version to be used
12 build_tools = "19.0.2"
13
14 # Command for running Ant
15 #ant = "/path/to/ant"
16 ant = "ant"
17
18 # Command for running maven 3
19 #mvn3 = "/path/to/mvn"
20 mvn3 = "mvn"
21
22 # Command for running Gradle
23 #gradle = "/path/to/gradle"
24 gradle = "gradle"
25
26 # Set the maximum age (in days) of an index that a client should accept from
27 # this repo. Setting it to 0 or not setting it at all disables this
28 # functionality. If you do set this to a non-zero value, you need to ensure
29 # that your index is updated much more frequently than the specified interval.
30 # The same policy is applied to the archive repo, if there is one.
31 repo_maxage = 0
32
33 repo_url = "https://f-droid.org/repo"
34 repo_name = "F-Droid"
35 repo_icon = "fdroid-icon.png"
36 repo_description = """
37 The official repository of the F-Droid client. Applications in this repository
38 are either official binaries built by the original application developers, or
39 are binaries built from source by the admin of f-droid.org using the tools on
40 https://gitorious.org/f-droid.
41 """
42
43 # As above, but for the archive repo.
44 # archive_older sets the number of versions kept in the main repo, with all
45 # older ones going to the archive. Set it to 0, and there will be no archive
46 # repository, and no need to define the other archive_ values.
47 archive_older = 3
48 archive_url = "https://f-droid.org/archive"
49 archive_name = "F-Droid Archive"
50 archive_icon = "fdroid-icon.png"
51 archive_description = """
52 The archive repository of the F-Droid client. This contains older versions
53 of applications from the main repository.
54 """
55
56
57 # The key (from the keystore defined below) to be used for signing the
58 # repository itself.  This is the same name you would give to keytool or
59 # jarsigner using -alias.  (Not needed in an unsigned repository).
60 #repo_keyalias = "fdroidrepo"
61
62 # The keystore to use for release keys when building. This needs to be
63 # somewhere safe and secure, and backed up!  The best way to manage these
64 # sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
65 # configure FDroid to use a smartcard, set the keystore file using the keyword
66 # "NONE" (i.e. keystore = "NONE").  That makes Java find the keystore on the
67 # smartcard based on 'smartcardoptions' below.
68 #keystore = "~/.local/share/fdroidserver/keystore.jks"
69
70 # You should not need to change these at all, unless you have a very
71 # customized setup for using smartcards in Java with keytool/jarsigner
72 #smartcardoptions = "-storetype PKCS11 -providerName SunPKCS11-OpenSC \
73 #    -providerClass sun.security.pkcs11.SunPKCS11 \
74 #    -providerArg opensc-fdroid.cfg"
75
76 # The password for the keystore (at least 6 characters).  If this password is
77 # different than the keypass below, it can be OK to store the password in this
78 # file for real use.  But in general, sensitive passwords should not be stored
79 # in text files!
80 #keystorepass = "password1"
81
82 # The password for keys - the same is used for each auto-generated key as well
83 # as for the repository key.  You should not normally store this password in a
84 # file since it is a sensitive password.
85 #keypass = "password2"
86
87 #The distinguished name used for all keys.
88 keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
89
90 #Use this to override the auto-generated key aliases with specific ones
91 #for particular applications. Normally, just leave it empty.
92 keyaliases = {}
93 keyaliases['com.example.app'] = 'example'
94 #You can also force an app to use the same key alias as another one, using
95 #the @ prefix.
96 keyaliases['com.example.another.plugin'] = '@com.example.another'
97
98 # The full path to the root of the repository.  It must be specified in
99 # rsync/ssh format for a remote host/path. This is used for syncing a locally
100 # generated repo to the server that is it hosted on.  It must end in the
101 # standard public repo name of "/fdroid", but can be in up to three levels of
102 # sub-directories (i.e. /var/www/packagerepos/fdroid).
103 #serverwebroot = 'user@example:/var/www/fdroid'
104
105 # To upload the repo to an Amazon S3 bucket using `fdroid server update`.
106 # Warning, this deletes and recreates the whole fdroid/ directory each
107 # time. This is based on apache-libcloud, which supports basically all cloud
108 # storage services, so it should be easy to port the fdroid server tools to
109 # any of them.
110 #awsbucket = 'myawsfdroid'
111 #awsaccesskeyid = 'SEE0CHAITHEIMAUR2USA'
112 #awssecretkey = 'yourverysecretkeywordpassphraserighthere'
113
114 # If you want to force 'fdroid server' to use a non-standard serverwebroot
115 #nonstandardwebroot = False
116
117 #Wiki details
118 wiki_protocol = "http"
119 wiki_server = "server"
120 wiki_path = "/wiki/"
121 wiki_user = "login"
122 wiki_password = "1234"
123
124 #Only set this to true when running a repository where you want to generate
125 #stats, and only then on the master build servers, not a development
126 #machine.
127 update_stats = False
128
129 #Use the following to push stats to a Carbon instance:
130 stats_to_carbon = False
131 carbon_host = '0.0.0.0'
132 carbon_port = 2003
133
134 #Set this to true to always use a build server. This saves specifying the
135 #--server option on dedicated secure build server hosts.
136 build_server_always = False
137
138 # Limit in number of characters that fields can take up
139 # Only the fields listed here are supported, defaults shown
140 char_limits = {
141     'Summary' : 50,
142     'Description' : 1500
143 }