mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
fix
This commit is contained in:
@@ -121,12 +121,16 @@ inputs:
|
||||
})
|
||||
(mkIf misskey-proxy.enable
|
||||
{
|
||||
nixos.services.nginx.httpProxy."${misskey-proxy.hostname}" =
|
||||
nixos.services.nginx =
|
||||
{
|
||||
upstream = "https://direct.${misskey-proxy.hostname}";
|
||||
websocket = true;
|
||||
setHeaders.Host = "direct.${misskey-proxy.hostname}";
|
||||
addAuth = true;
|
||||
enable = true;
|
||||
httpProxy."${misskey-proxy.hostname}" =
|
||||
{
|
||||
upstream = "https://direct.${misskey-proxy.hostname}";
|
||||
websocket = true;
|
||||
setHeaders.Host = "direct.${misskey-proxy.hostname}";
|
||||
addAuth = true;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user