This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
potato.cfg.template
122 lines (103 loc) · 4.68 KB
/
potato.cfg.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
;;; -*- lisp -*-
((:db-host . "localhost") ; CouchDB hostname
(:db-port . 5984) ; CouchDB port number
(:db-name . "foo") ; CouchDB database name
(:db-user . nil)
(:db-password . nil)
;; SMTP server used to send automated emails. If NIL, emails will not be sent.
(:smtp-host . nil)
;; Port number for the SMTP server
(:smtp-port . 25)
;; If specified, this parameter indicates that authentication should
;; be used for the SMTP connection
(:smtp-username . nil)
;; The password to use for SMTP authentication.
(:smtp-password . nil)
;; Type of encryption for SMTP connections. Valid values are: nil, :tls, :starttls
(:smtp-ssl . :starttls)
;; The sender name to use for emails
(:mail-sender . "Potato <noreply@the-potato.com>")
;; Memcached configuration
(:memcached-host . "localhost")
(:memcached-port . 11211)
;; The name of the server as seen from a client. This is the domain
;; name the user would be typing into the browser address bar. This
;; name is used as a prefix forming links to specific locations in
;; the application. Note that the URL needs to end with a /.
(:external-listen-address . "http://localhost:8080/")
;; The URL prefix for websocket connections.
(:external-websocket-listen-address . "ws://localhost:8081/ws")
;; The location of the Solr instance
(:solr-path . "http://localhost:8983/solr/potato")
;; Port number the web server should listen to.
(:listen-port . 8080)
;; Port number the websocket server should listen to.
(:websocket-listen-port . 8081)
;; RabbitMQ configuration
(:rabbitmq-host . "localhost")
(:rabbitmq-port . 5672)
(:rabbitmq-user . "guest")
(:rabbitmq-password . "guest")
(:rabbitmq-vhost . "/")
;; S3 configuration. The bucket, web access key and secret key are
;; configured from the S3 administration console. The directory can
;; be set to anything and is simply used as a common directory for
;; all files uploaded from this Potato instance. This is useful when
;; you have several instances sharing the same S3 settings.
(:s3-bucket . "the-potato")
;; The directory name is used as a root for all files stored in the
;; s3 bucket. When having multiple Potato instances working on the
;; same bucket, it can be useful to use a different directory name
;; for each instance in order to easily see which files belong to
;; which instance.
(:s3-directory . "debug")
;; Keys used when the Potato server accesses S3 services directly.
;; Needs full permissions to the given bucket.
(:s3-access-key . nil)
(:s3-secret-key . nil)
;; The client keys below are used by the client when uploading files.
;; It only needs upload permission to the bucket.
(:s3-browser-secret-key . nil)
(:s3-browser-access-key . nil)
;; The S3 server hostname, normally of the form
;; "somesite.s3.amazonaws.com"
(:s3-endpoint . nil)
;; Local file uploads. If S3 is not used, then files are stored
;; locally on the server. The below option specifies the root of the
;; file hierarchy where the uploaded files are stored. The files are
;; stored in a tree in the form: domain/channel/file
(:upload-path . "/tmp/potato-files")
;; If S3 and local file uploads are configured at the same time, the
;; following option chooses which type should be used when uploading
;; files. Valid options are :S3 or :FILE.
(:default-upload-mode . :file)
;; Path to the convert program from ImageMagick. This is used when
;; creating image thumbnails when uploading pictures to the channel,
;; as well as scaling user's pictures. Please note the comments in
;; the installation guide about using configuring the amount of
;; memory ImageMagic can use, in order to prevent attacks where a
;; file is uploaded that expands to a very large size.
(:imagemagick-convert-program . "/usr/bin/convert")
;; The maximum number of characters in a single message.
(:max-message-size . 10000)
;; The API key for the Youtube API. If NIL, then thumbnail images
;; will not be added to Youtube links.
(:youtube-key . nil)
;; If true, users are allowed to create new domains.
(:allow-create-domain . nil)
;; GCM configuration. If the authorisation key is NIL, GCM support is
;; disabled, and the Android application will not receive
;; notifications.
(:gcm-key . nil)
(:gcm-sender . nil)
;; If true, users are allowed to login with just an email address.
;; When this feature is activated, the user will receive an email
;; with a code that allows the user to log in.
(:allow-passwordless-login . t)
;; If true, users are allowed to reset their password using the
;; "forgot password" link on the login screen.
(:allow-password-reset . t)
;; If true, various security features will be enabled that expects
;; that the client only connects via HTTPS.
(:force-https . nil)
)