mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-07-16 22:21:55 +08:00
feat: write proxy module for pollaris
This commit is contained in:
parent
1d5c1baaec
commit
8919c3f8fe
1 changed files with 15 additions and 0 deletions
15
modules/services/pollaris-proxy.nix
Normal file
15
modules/services/pollaris-proxy.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
nginx.virtualHosts."pick.liv.town" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||
locations."/" = {
|
||||
proxyPass = "http://192.168.122.100";
|
||||
};
|
||||
|
||||
locations."wp-login.php".return = "301 https://hil-speed.hetzner.com/10GB.bin";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue