40 lines
1.3 KiB
Django/Jinja
40 lines
1.3 KiB
Django/Jinja
auth.{{ authelia_domain }} {
|
|
reverse_proxy 127.0.0.1:{{ authelia_port }}
|
|
}
|
|
|
|
# Reusable snippet for Authelia Forward Auth
|
|
(authelia_auth) {
|
|
forward_auth http://127.0.0.1:9091 { # Replace with your Authelia IP/Port or container name
|
|
uri /api/verify?rd=https://auth.frantecrt.duckdns.org # Replace with your public Authelia URL
|
|
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
|
}
|
|
}
|
|
|
|
semaphore.frantecrt.duckdns.org {
|
|
# Import the auth configuration block
|
|
import authelia_auth
|
|
|
|
# Route the traffic to your backend application if authenticated
|
|
reverse_proxy semaphore.netbird.cloud:3000
|
|
}
|
|
|
|
git.frantecrt.duckdns.org {
|
|
# Import the auth configuration block
|
|
import authelia_auth
|
|
|
|
# Route the traffic to your backend application if authenticated
|
|
reverse_proxy gitea.netbird.cloud:3000
|
|
}
|
|
|
|
wikijs.frantecrt.duckdns.org {
|
|
# Not using authelia_auth as it breaks the app's login page.
|
|
reverse_proxy wikijs.netbird.cloud:3000
|
|
|
|
}
|
|
|
|
vault.frantecrt.duckdns.org {
|
|
# Route the traffic to your backend application if authenticated
|
|
reverse_proxy wikijs.netbird.cloud:8080
|
|
reverse_proxy /notifications/hub* wikijs.netbird.cloud:3012
|
|
reverse_proxy /notifications/anonymous_hub* wikijs.netbird.cloud:3012
|
|
} |