Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
41de38613c
|
|||
|
e0812f28aa
|
7
manifests/access-control-rule.yaml
Normal file
7
manifests/access-control-rule.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: authelia.huizinga.dev/v1
|
||||
kind: AccessControlRule
|
||||
metadata:
|
||||
name: tunnel
|
||||
spec:
|
||||
domain: "*.tunnel.${domain}"
|
||||
policy: one_factor
|
||||
@@ -1,10 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: authelia-acl
|
||||
annotations:
|
||||
config.huizinga.dev/fragment: authelia-acl
|
||||
data:
|
||||
rules: |
|
||||
- domain: "*.tunnel.${domain}"
|
||||
policy: one_factor
|
||||
@@ -9,4 +9,4 @@ resources:
|
||||
- ./service.yaml
|
||||
- ./certificate.yaml
|
||||
- ./ingress-route.yaml
|
||||
- ./config-map-authelia-acl.yaml
|
||||
- ./access-control-rule.yaml
|
||||
|
||||
@@ -24,11 +24,19 @@ async fn main() -> color_eyre::Result<()> {
|
||||
|
||||
let env_filter = EnvFilter::try_from_default_env().or_else(|_| EnvFilter::try_new("info"))?;
|
||||
|
||||
if std::env::var("CARGO").is_ok() {
|
||||
let logger = tracing_subscriber::fmt::layer().compact();
|
||||
tracing_subscriber::Registry::default()
|
||||
.with(logger)
|
||||
.with(env_filter)
|
||||
.init();
|
||||
} else {
|
||||
let logger = tracing_subscriber::fmt::layer().json();
|
||||
tracing_subscriber::Registry::default()
|
||||
.with(logger)
|
||||
.with(env_filter)
|
||||
.init();
|
||||
}
|
||||
|
||||
info!(
|
||||
"Starting {} ({})",
|
||||
|
||||
Reference in New Issue
Block a user