wiki: listen gollum on localhost only
This commit is contained in:
parent
9841e402e2
commit
6b59b7972a
@ -29,7 +29,7 @@ in
|
|||||||
{
|
{
|
||||||
services.gollum = {
|
services.gollum = {
|
||||||
enable = true;
|
enable = true;
|
||||||
address = "::";
|
address = "::1";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1|
|
Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1|
|
||||||
system('${pushCgit}')
|
system('${pushCgit}')
|
||||||
@ -47,7 +47,7 @@ in
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://[::]:${toString config.services.gollum.port}";
|
proxyPass = "http://[::1]:${toString config.services.gollum.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
Loading…
Reference in New Issue
Block a user