10 Commits

Author SHA1 Message Date
dillard 3cf985f240 fix: disable SSO auth header injection for main permission
Technitium manages its own authentication and does not integrate with
YunoHost SSO. When auth_header is enabled (the default), SSOwat injects
an 'Authorization: Basic' header containing the YunoHost user's
credentials into every proxied request. Technitium receives this header,
attempts to authenticate the YunoHost user against its own user database,
fails silently, and redirects back to its login page — creating a login
loop that affects users who are logged into YunoHost SSO.

Setting auth_header = false prevents SSOwat from injecting credentials,
allowing Technitium to handle authentication with its own login form.

The app already correctly declares sso = false and ldap = false, making
auth_header = false the consistent and expected setting.
2026-07-06 03:35:55 +02:00
trendless 5a92cfa3b0 Merge pull request #58 from YunoHost-Apps/testing
add dns server domain setting
2026-06-15 21:43:46 -06:00
trendless e93a4d7623 Update install
add dns server domain setting
2026-06-15 21:37:00 -06:00
trendless 4ac9eba0de Merge pull request #57 from YunoHost-Apps/testing
[autopatch] Automatic patch to simplify `proxy_pass`/`fastcgi_pass` o…
2026-06-15 20:38:40 -06:00
Yunohost-Bot 97fb4248d9 [autopatch] Automatic patch to simplify proxy_pass/fastcgi_pass options in nginx.conf (PLEASE DOUBLE CHECK BEFORE MERGING) 2026-06-15 20:34:30 -06:00
trendless 41db53fe0c Merge pull request #56 from YunoHost-Apps/testing
Testing 15.2.0~ynh1
2026-06-15 20:00:18 -06:00
trendless 38bac532aa Update logsymlink.cron
00:05 only
2026-06-15 19:59:58 -06:00
trendless 2a365886e2 clarify instructions re IPv6 2026-06-15 19:56:40 -06:00
trendless c81dbef6fe rm pre_upgrade 2026-06-15 19:53:09 -06:00
trendless 082d01d5dd update instructions to post_upgrade 2026-06-15 19:52:50 -06:00
6 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -1 +1 @@
0,15,30,45 0 * * * ln -sf $(ls -t /var/log/__APP__/dns/*.log | head -n 1) /var/log/__APP__/__APP__.log 5 0 * * * ln -sf $(ls -t /var/log/__APP__/dns/*.log | head -n 1) /var/log/__APP__/__APP__.log
+2 -9
View File
@@ -2,14 +2,7 @@
location __PATH__/ { location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
include proxy_params_no_auth;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
} }
+9
View File
@@ -0,0 +1,9 @@
After upgrading, in `Settings` > `General` you must set `DNS Server Local End Points` to your ynh server's IP address(es) and then scroll to the bottom and `Save Settings` to restart the DNS server.
eg:
```
192.168.0.88:53
[2981:2cb2:8e86:91f6:4dab:cc4b:2fba:463b]:53
```
If your server does not have an IPv6 address, you only need to enter the IPv4 address.
-1
View File
@@ -1 +0,0 @@
After upgrading, you must add your ynh server's local IP address(es) to `DNS Server Local End Points`: https://__DOMAIN__/#settingsTabPaneGeneral and then restart __APP__.
+2 -1
View File
@@ -21,7 +21,7 @@ cpe = "cpe:2.3:a:technitium:dnsserver"
fund = "https://patreon.com/technitium" fund = "https://patreon.com/technitium"
[integration] [integration]
yunohost = ">= 12.1.18" yunohost = ">= 12.1.38"
helpers_version = "2.1" helpers_version = "2.1"
architectures = ["amd64", "arm64", "armhf"] architectures = ["amd64", "arm64", "armhf"]
multi_instance = false multi_instance = false
@@ -77,6 +77,7 @@ ram.runtime = "50M"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"
main.auth_header = false
[resources.ports] [resources.ports]
main.default = 5380 main.default = 5380
+2 -1
View File
@@ -70,7 +70,8 @@ else
fi fi
mytoken1=$(curl -s "http://127.0.0.1:5380/api/user/createToken?user=admin&pass=admin&tokenName=mytoken1" | jq -r '.token') mytoken1=$(curl -s "http://127.0.0.1:5380/api/user/createToken?user=admin&pass=admin&tokenName=mytoken1" | jq -r '.token')
curl -s "http://localhost:5380/api/settings/set?dnsServerLocalEndPoints=$endpoints&Token=$mytoken1" curl -s "http://localhost:5380/api/settings/set?dnsServerLocalEndPoints=$endpoints&token=$mytoken1"
curl -s "http://localhost:5380/api/settings/set?dnsServerDomain=$domain&token=$mytoken1"
#================================================= #=================================================
# RESTART SYSTEMD SERVICE # RESTART SYSTEMD SERVICE