Compare commits
10 Commits
76a5fcc951
...
3cf985f240
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cf985f240 | |||
| 5a92cfa3b0 | |||
| e93a4d7623 | |||
| 4ac9eba0de | |||
| 97fb4248d9 | |||
| 41db53fe0c | |||
| 38bac532aa | |||
| 2a365886e2 | |||
| c81dbef6fe | |||
| 082d01d5dd |
@@ -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
@@ -2,14 +2,7 @@
|
||||
location __PATH__/ {
|
||||
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
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";
|
||||
include proxy_params_no_auth;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
@@ -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 +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
@@ -21,7 +21,7 @@ cpe = "cpe:2.3:a:technitium:dnsserver"
|
||||
fund = "https://patreon.com/technitium"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 12.1.18"
|
||||
yunohost = ">= 12.1.38"
|
||||
helpers_version = "2.1"
|
||||
architectures = ["amd64", "arm64", "armhf"]
|
||||
multi_instance = false
|
||||
@@ -77,6 +77,7 @@ ram.runtime = "50M"
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
main.auth_header = false
|
||||
|
||||
[resources.ports]
|
||||
main.default = 5380
|
||||
|
||||
+2
-1
@@ -70,7 +70,8 @@ else
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user