proxy nginx behind k3s
This commit is contained in:
@@ -187,13 +187,14 @@
|
|||||||
|
|
||||||
services.nginx = lib.mkIf opts.default-nginx.enable {
|
services.nginx = lib.mkIf opts.default-nginx.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts.${opts.default-nginx.hostname} = {
|
|
||||||
forceSSL = true;
|
|
||||||
|
|
||||||
# allow proxy through k3s
|
# allow proxy through k3s
|
||||||
defaultHTTPListenPort = 8080;
|
defaultHTTPListenPort = 8080;
|
||||||
defaultSSLListenPort = 8443;
|
defaultSSLListenPort = 8443;
|
||||||
|
|
||||||
|
virtualHosts.${opts.default-nginx.hostname} = {
|
||||||
|
forceSSL = true;
|
||||||
|
|
||||||
# Parse TLD from hostname to use wildcard cert (just takes last two elements separated by a period)
|
# Parse TLD from hostname to use wildcard cert (just takes last two elements separated by a period)
|
||||||
useACMEHost =
|
useACMEHost =
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user