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

13 commits

Auteur SHA1 Message Date
akuma06
5376b9e271 New config files (#854)
* New config files

As decided, config files are parsed at runtime.
I decided to go for YAML config files because there can be comments in
it.
There are 2 files:
* config/default_config.yml <= which shouldn't be edited unless we add a
config parameter
* config/config.yml <= which is the user-defined config. This file
shouldn't be commited

Changed every call to config.XXX to config.Conf.XXX (look to the new
stucture of config in config/types.go)

Of course, putting config parameters in config.yml overrides config in
config_default.yml. You don't have to put everything in it, just add
what you want to override.

* Fixing test

Replacing conf.New by config.Conf

* Fixing call to config.Conf to config.Config{} in test files

* Might have fixed testing with this

Printf instead of Fatalf

* Renaming config.yml in example file

* Forbid commiting config.yml

* Should be now fixed

* Do not need this file anymore
2017-05-30 21:21:57 -05:00
tomleb
7eee47b0d3 Fix bug, remove literals (#629)
* Use ModeratorDir variable

* Rename cookieHelper to cookie_helper for consistency

* Use named constant instead of literals

* Fix ability to upload when uploads are disabled

The old code let people upload under the right conditions when uploads
were disabled. (ie: User is banned and config.AdminAreStillAllowedTo is
false)

* Increase timeout (fixes #517)

* Fix inconsistent indentation *.{js, css} (fix #583)

* Fix negative page

Temporary fix. The issue was that going to a negative page caused the
sql query to have a negative offset. This caused an error in the
database query.

We need to cleanup this code, but this will work for now.

* Fix wrong PG_DATA directory due to upgrade to 9.6

* Add server status link to FAQ

* Fix failing tests

* Clarify group_vars/all and hosts doc

* Add a wrapper to protect /mod route

* Fix login page not showing form errors
2017-05-20 09:10:16 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Eliot Whalan
515f4696cc Patch scrapers to support sukebei 2017-05-15 19:32:28 +10:00
Jeff
100ecffda7 fix scraper, optimize updates so it doesn't suck massive ass (#367)
* fix scraper, optimize updates so it doesn't suck massive ass

* fucking ass
2017-05-11 14:06:47 -05:00
Jeff Becker
217038eea0 only scrape torrents uploaded within 90 days 2017-05-11 09:40:33 -04:00
Jeff Becker
57895251a3 fix torrent swarm ordering and add timeouts for udp scrape 2017-05-11 07:40:50 -04:00
Jeff Becker
d3d2f62ea6 fix buffer size 2017-05-10 18:10:20 -04:00
Jeff Becker
604cf57677 make it work 2017-05-10 18:06:21 -04:00
Jeff Becker
3d8727d1e3 Revert "fix infinite loop shit"
This reverts commit 1d8ba05d09.
2017-05-10 13:54:59 -04:00
Jeff Becker
5da794cb5d fix infinite loop shit 2017-05-10 13:53:59 -04:00
Jeff Becker
25098a41a4 update scraper
this code will kill kittens
2017-05-10 13:50:34 -04:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00