Merge branch 'IPv6_optional' of github.com:Xentrice/pangolin into Xentrice-IPv6_optional

This commit is contained in:
Owen
2025-08-06 10:19:51 -07:00
4 changed files with 6 additions and 3 deletions

View File

@@ -60,4 +60,4 @@ networks:
default: default:
driver: bridge driver: bridge
name: pangolin name: pangolin
enable_ipv6: true {{if .EnableIPv6}} enable_ipv6: true{{end}}

View File

@@ -1,6 +1,7 @@
docker docker
example.com example.com
pangolin.example.com pangolin.example.com
yes
admin@example.com admin@example.com
yes yes
admin@example.com admin@example.com

View File

@@ -39,6 +39,7 @@ type Config struct {
BadgerVersion string BadgerVersion string
BaseDomain string BaseDomain string
DashboardDomain string DashboardDomain string
EnableIPv6 bool
LetsEncryptEmail string LetsEncryptEmail string
EnableEmail bool EnableEmail bool
EmailSMTPHost string EmailSMTPHost string
@@ -303,6 +304,7 @@ func collectUserInput(reader *bufio.Reader) Config {
fmt.Println("\n=== Basic Configuration ===") fmt.Println("\n=== Basic Configuration ===")
config.BaseDomain = readString(reader, "Enter your base domain (no subdomain e.g. example.com)", "") config.BaseDomain = readString(reader, "Enter your base domain (no subdomain e.g. example.com)", "")
config.DashboardDomain = readString(reader, "Enter the domain for the Pangolin dashboard", "pangolin."+config.BaseDomain) config.DashboardDomain = readString(reader, "Enter the domain for the Pangolin dashboard", "pangolin."+config.BaseDomain)
config.EnableIPv6 = readBool(reader, "Is your server IPv6 capable?", true)
config.LetsEncryptEmail = readString(reader, "Enter email for Let's Encrypt certificates", "") config.LetsEncryptEmail = readString(reader, "Enter email for Let's Encrypt certificates", "")
config.InstallGerbil = readBool(reader, "Do you want to use Gerbil to allow tunneled connections", true) config.InstallGerbil = readBool(reader, "Do you want to use Gerbil to allow tunneled connections", true)

View File

@@ -291,10 +291,10 @@ WantedBy=default.target`
}, },
nixos: { nixos: {
x86_64: [ x86_64: [
`nix run 'nixpkgs#fosrl-newt' --id ${id} --secret ${secret} --endpoint ${endpoint}` `nix run 'nixpkgs#fosrl-newt' -- --id ${id} --secret ${secret} --endpoint ${endpoint}`
], ],
aarch64: [ aarch64: [
`nix run 'nixpkgs#fosrl-newt' --id ${id} --secret ${secret} --endpoint ${endpoint}` `nix run 'nixpkgs#fosrl-newt' -- --id ${id} --secret ${secret} --endpoint ${endpoint}`
] ]
} }
}; };