Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

21 commits

Auteur SHA1 Message Date
tomleb
ea697db054 Tune pgpool variables, we're going fast 2017-05-08 23:42:04 -04:00
tomleb
88d781a537 Fix auth problem with pgpool 2017-05-08 23:42:04 -04:00
tomleb
3d94dfca54 Add pgpool, pg_hba.conf needs to be modified 2017-05-08 23:42:04 -04:00
tomleb
6e04f6c01b Use rtorrent to seed the torrents (fails on systemd) 2017-05-08 23:42:04 -04:00
tomleb
f7bf1cb4b6 Create .torrents file from .xz and .sig 2017-05-08 23:42:04 -04:00
tomleb
3d74e4766f Daily backup of db zipped and signed 2017-05-08 23:42:04 -04:00
tomleb
d508a17833 Add .pgpass file to avoid entering db password 2017-05-08 23:42:04 -04:00
tomleb
3a50bea787 Remove TODO 2017-05-08 23:42:04 -04:00
tomleb
a31216c077 Automate postgresql setup
Creates the user and the database provided by the environment variable.
These are currently duplicated in postgres.env so we might want to find
a way to have them in only one place.

I tried my best at keeping the pg_hba.conf file secure for the server,
but I am no expert so it'd be great if someone could check it out.
2017-05-08 23:42:04 -04:00
tomleb
5e4f58706a Start working on server automation with ansible 2017-05-08 23:42:04 -04:00
tomleb
77e9ab30d1 Add prod docker files without db 2017-05-06 20:11:47 -04:00
tomleb
b762457545 Remove go generate 2017-05-06 19:36:51 -04:00
tomleb
b303d16903 Remove mysql backend 2017-05-06 19:20:28 -04:00
tomleb
364b115fe0 Waiting only for postgres backend 2017-05-06 19:17:13 -04:00
tomleb
7a85495d81 Generate template files 2017-05-06 19:12:31 -04:00
tomleb
cb5fa3142b Remove nested config variables 2017-05-06 19:02:02 -04:00
tomleb
5db874a2fa Add postgres dialect 2017-05-06 18:48:21 -04:00
tomleb
17f632bae7 Add cache_size param with sqlite backend
Need a better way to deal with config, docker uses environment variables
mostly and the application uses .go files. Keeping the two in sync will
probably end up being annoying.
2017-05-06 18:48:21 -04:00
tomleb
5fe679b4a6 Add prune script because docker takes up so much space 2017-05-06 18:48:21 -04:00
tomleb
cecc6d04a1 Add postgres docker support
Not tested yet as the current postgres dump is incompatible with the
application. We need to fix ourselve to one schema and stick to it for
whatever database backend we support.
2017-05-06 18:48:21 -04:00
tomleb
9ddb5482df Run sqlite environment in docker 2017-05-06 18:48:21 -04:00