System Tweaks
The System Tweaks package keeps system settings that the NAS would otherwise reset on each restart: DNS optional settings, local host names, website names served by Web Center, and Docker settings. Everything is configured through its user interface.
Installation
Download the APK from https://asustor.cappysan.dev/system-tweaks/
DNS
Adds search domains or resolver options to the DNS settings of the NAS.
Global Settings:
Search: the search domains, for example example.com. Optional.
Options: the resolver options, for example
ndots:2 timeout:1. Optional.Override default resolv.conf DNS settings: unchecked by default.
When unchecked, the DNS settings of the NAS are kept, and Search and Options, when filled in, are added or replace the ones of the NAS.
When checked, only the DNS servers of the network settings of the NAS are kept, along with Search and Options when filled in.
Result: the resulting /etc/resolv.conf file. Click the file name to download it.
Hosts
Gives names to devices of the local network, without a DNS server. For example, 192.168.1.20 can be reached as printer.example.com from the NAS.
Result: the resulting /etc/hosts file. Click the file name to download it.
Web Center
Enable configure virtual host proxies and redirects, such as https://prometheus.example.com, instead of an address with a port number, such as https://nas.example.com:9090.
Web Center must be installed and configured.
Virtual Host Proxies: the list of the websites.
Each website has:
Status: uncheck Enabled to stop serving the website, without deleting it.
Host name: the name of the website, for example prometheus.example.com.
HTTP: what to do with http://prometheus.example.com:
Disabled: nothing.
Redirect to HTTPS: open https://prometheus.example.com instead. Recommended.
Proxy: proxy the application at the given address, for example
http://127.0.0.1:8080/.
HTTPS: when Enable HTTPS is checked, https://prometheus.example.com proxies the application at the given address, for example
https://127.0.0.1:9090. The default certificate of the NAS is used.Verify the certificate of the destination: leave it unchecked for the applications of the NAS, which use a certificate that cannot be verified.
For example, for Prometheus: set Host name to prometheus.example.com, HTTP to Redirect to HTTPS, and Proxy to to https://127.0.0.1:9090.
Web Center uses the HTTP and HTTPS ports set in its own settings.
Note
The host name must also be known by the devices of the network, for example with a DNS alias (CNAME) on your router or in Pi-hole.
Docker
When Docker is not installed, the tab only shows Docker is not installed.
Global Settings:
log-driver: set to
localto limit the disk space used by the container logs.log-opts.max-size: maximum size of a single log file, for example
256mor1g. Only visible when log-driver is notdefault.log-opts.max-file: maximum number of log files kept per container. Only visible when log-driver is not
default.live-restore: keeps the containers running while Docker restarts. Recommended.
metrics-addr: lets Prometheus collect Docker measurements.
Note
When the settings were changed, Apply restarts Docker to apply them, and the containers are restarted unless live-restore is checked.