blob: 522a6bffc6ddfbf058d00cc85ec7bb8a6d1a7756 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ pkgs, ... }:
{
services.nginx.virtualHosts."pgweb.emile.space" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:5432";
};
};
};
environment.systemPackages = with pkgs; [ pgweb ];
# systemd.services.pgweb = {
# wantedBy = [ "multi-user.target" ];
# serviceConfig.ExecStart = "${pkgs.pgweb}/bin/pwgeb";
# };
}
|