Attempt to use cloudflare tunnel through nginx
This commit is contained in:
parent
ff95e830d1
commit
ebcfef4bd3
3 changed files with 44 additions and 39 deletions
hosts/nixos/lapetus/services
|
@ -1,12 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
let port = 8418;
|
||||
let
|
||||
port = 8418;
|
||||
host = "bin.moonythm.dev";
|
||||
in
|
||||
{
|
||||
imports = [ ./cloudflared.nix ];
|
||||
|
||||
sops.secrets.microbin_env.sopsFile = ../secrets.yaml;
|
||||
|
||||
services.cloudflared.tunnels =
|
||||
config.satellite.cloudflared.proxy "bin.moonythm.dev" port;
|
||||
config.satellite.cloudflared.proxy host;
|
||||
services.nginx.virtualHosts.${host} =
|
||||
config.satellite.proxy port { };
|
||||
|
||||
services.microbin = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue