Rodney Lorrimar
6460e459de
nixos/gogs: Fix module when no passwords provided
...
If neither database.password or database.passwordFile were provided,
it would try and fail to coerce null to a string.
This fixes the situation where there is no password for the database.
Resolves #27950
2017-09-17 18:41:53 +02:00
Jörg Thalheim
036e0f114a
gogs: improve cookieSecure documentation
2017-05-01 11:37:12 +02:00
Rodney Lorrimar
ced172010a
gogs service: add option for enabling "secure" cookies
2017-04-23 16:27:43 +01:00
Rodney Lorrimar
0e90a05a52
gogs service: generate the secret key only once, then reuse
2017-04-23 15:05:44 +01:00
Rodney Lorrimar
cfa1faa37c
gogs service: chmod 440 config file
...
Directory which contains the config file /var/lib/gogs already
has mode 700 but users are liable to change these things.
2017-04-22 17:51:04 +01:00
Rodney Lorrimar
79d52bc26c
gogs service: don't copy database password to nix store
...
Relevant to #24288
2017-04-22 17:07:21 +01:00
Rodney Lorrimar
0c9512d263
gogs service: fix encoding of secret key
...
I was getting a secret key like this:
[security]
SECRET_KEY = 7X
Use coreutils base64 instead to get the full 256 bits of randomness.
2017-04-22 17:07:20 +01:00
Tim Jaeger
83241c091d
gogs: fix error on push
...
Pushing to gogs only works if the `gogs` user's shell is `bash`. For error and
solution, refer to [this SO thread](http://stackoverflow.com/a/22315659 )
2017-02-04 12:16:37 +01:00
schneefux
67c4512060
gogs service: init
2017-01-21 13:38:24 +01:00