Commit Graph

11 Commits

Author SHA1 Message Date
Adhityaa Chandrasekar
52f8df5183 config.go: parse config file before default
Closes https://gitlab.com/commento/commento/issues/187
2019-09-13 16:14:59 -07:00
Adhityaa Chandrasekar
9f14a9389c api: add MAX_IDLE_PG_CONNECTIONS config variable
This allows lib/pq to maintain that many idle connections to the
PostgreSQL server. The larger the number the better, but obviously, your
machine needs to be capable to maintain that many connections.

Closes https://gitlab.com/commento/commento-ce/issues/76
2018-08-17 00:22:38 +05:30
Adhityaa Chandrasekar
3ad5128cb9 config.go: trim trailing slash in ORIGIN and CDN_PREFIX
Fixes https://gitlab.com/commento/commento-ce/issues/59
2018-08-08 10:49:14 +05:30
Adhityaa Chandrasekar
b7b224983c config.go: rename parseConfig to configParse 2018-07-24 12:11:01 +05:30
Adhityaa
a3a6f2ba68 api: use COMMENTO_ prefix on errors
Closes https://gitlab.com/commento/commento-ce/issues/44
2018-06-13 00:22:08 +05:30
Pierre-Alain TORET
73d04bf857 api: add COMMENTO_BIND_ADDRESS variable
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-06-10 22:19:29 +02:00
Adhityaa
8b0d198934 api: run go fmt 2018-06-10 23:13:42 +05:30
Adhityaa
c208e3392b config_test.go: add test for no ORIGIN 2018-06-09 14:11:53 +05:30
Adhityaa
432ffeebb3 api: add COMMENTO_STATIC environment variable
Closes https://gitlab.com/commento/commento-ce/issues/2
2018-06-09 14:11:31 +05:30
Adhityaa
1df933c3c0 config_test.go: use COMMENTO_ prefix 2018-06-07 23:19:43 +05:30
Adhityaa
a090770b73 api: Add go files
I know this is a huge commit, but I can't be bothered to check
this in part by part.
2018-05-27 23:40:46 +05:30