test unix sockets
This commit is contained in:
parent
25d02e5d3a
commit
c9640ad7f5
2 changed files with 35 additions and 25 deletions
|
@ -3,11 +3,12 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkIf mkMerge;
|
||||
inherit (lib.attrsets) genAttrs;
|
||||
cfg = config.conf.matrix;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
services.nginx.virtualHosts = genAttrs [cfg.domain.base cfg.domain.full] (domain: {
|
||||
serverName = domain;
|
||||
useACMEHost = cfg.domain.base;
|
||||
|
@ -35,3 +36,7 @@ in
|
|||
|
||||
networking.firewall.allowedTCPPorts = [8448];
|
||||
}
|
||||
{
|
||||
services.nginx.virtualHosts.${cfg.domain.full}.locations."/".proxyPass = "http://unix:/run/conduwuit/socket";
|
||||
}
|
||||
])
|
||||
|
|
|
@ -19,4 +19,9 @@ if test -n "$SSH_CLIENT"
|
|||
set ssh (set_color brblack)"$USER@$hostname"
|
||||
end
|
||||
|
||||
set -l git
|
||||
set -l IS_GIT_REPO (command git rev-parse --is-inside-work-tree &>/dev/null)
|
||||
if test -n "$IS_GIT_REPO"
|
||||
end
|
||||
|
||||
string join "" -- $stat $path \n $nix $prompt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue