Skip to content

Commit 9cc8533

Browse files
authored
Merge pull request #466 from ukkopahis/doc-improvements
Documentation fixes and improvements
2 parents d1155e1 + 4d69183 commit 9cc8533

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+910
-505
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ jobs:
99
name: Deploy docs
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout master
13-
uses: actions/checkout@v1
14-
15-
- name: Deploy docs
16-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.x
16+
- run: pip3 install -r requirements-mkdocs.txt
17+
- run: mkdocs gh-deploy --force

.templates/wireguard/use-container-dns.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Forward DNS requests from remote WireGuard clients to the default
22
# gateway on the internal bridged network that the WireGuard container
3-
# is attached to. This results in queries being sent to any other
4-
# container on the same internal bridged network that is listening
5-
# on port 53 (eg PiHole, AdGuardHome or bind9).
3+
# is attached to. The gateway routes queries out from the bridged network to
4+
# the host's network. This results in queries being sent to any daemon or
5+
# container that is listening on host port 53 (eg PiHole, AdGuardHome, dnsmasq
6+
# or bind9).
67
#
78
# Acknowledgement: @ukkopahis
89

docs/Accessing-your-Device-from-the-internet.md renamed to docs/Basic_setup/Accessing-your-Device-from-the-internet.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ From time to time the IP address that your ISP assigns changes and it's difficul
66

77
Secondly, how do you get into your home network? Your router has a firewall that is designed to keep the rest of the internet out of your network to protect you. The solution to that is a Virtual Private Network (VPN) or "tunnel".
88

9-
## <a name="dynamicDNS"> Dynamic DNS </a>
9+
## Dynamic DNS
1010

1111
There are two parts to a Dynamic DNS service:
1212

1313
1. You have to register with a Dynamic DNS service provider and obtain a domain name that is not already taken by someone else.
1414
2. Something on your side of the network needs to propagate updates so that your chosen domain name remains in sync with your router's dynamically-allocated public IP address.
1515

16-
### <a name="registerDDNS"> Register with a Dynamic DNS service provider </a>
16+
### Register with a Dynamic DNS service provider
1717

1818
The first part is fairly simple and there are quite a few Dynamic DNS service providers including:
1919

@@ -24,7 +24,7 @@ The first part is fairly simple and there are quite a few Dynamic DNS service pr
2424
2525
Some router vendors also provide their own built-in Dynamic DNS capabilities for registered customers so it's a good idea to check your router's capabilities before you plough ahead.
2626

27-
### <a name="propagateDDNS"> Dynamic DNS propagation </a>
27+
### Dynamic DNS propagation
2828

2929
The "something" on your side of the network propagating WAN IP address changes can be either:
3030

@@ -39,7 +39,7 @@ A behind-the-router technique usually relies on sending updates according to a s
3939

4040
> This seems to be a problem for DuckDNS which takes a beating because almost every person using it is sending an update bang-on five minutes.
4141
42-
### <a name="duckDNSclient"> DuckDNS client </a>
42+
### DuckDNS client
4343

4444
IOTstack provides a solution for DuckDNS. The best approach to running it is:
4545

@@ -99,7 +99,7 @@ A null result indicates failure so check your work.
9999

100100
Remember, the Domain Name System is a *distributed* database. It takes *time* for changes to propagate. The response you get from directing a query to ns1.duckdns.org may not be the same as the response you get from any other DNS server. You often have to wait until cached records expire and a recursive query reaches the authoritative DuckDNS name-servers.
101101

102-
#### <a name="duckDNSauto"> Running the DuckDNS client automatically </a>
102+
#### Running the DuckDNS client automatically
103103

104104
The recommended arrangement for keeping your Dynamic DNS service up-to-date is to invoke `duck.sh` from `cron` at five minute intervals.
105105

@@ -152,7 +152,7 @@ $ cat /dev/null >~/Logs/duck.log
152152

153153
### WireGuard
154154

155-
WireGuard is supplied as part of IOTstack. See [WireGuard documentation](https://sensorsiot.github.io/IOTstack/Containers/WireGuard.html).
155+
WireGuard is supplied as part of IOTstack. See [WireGuard documentation](../Containers/WireGuard.md).
156156

157157
### PiVPN
158158

docs/Backup-and-Restore.md renamed to docs/Basic_setup/Backup-and-Restore.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The backup command can be executed from IOTstack's menu, or from a cronjob.
88
To ensure that all your data is saved correctly, the stack should be brought down. This is mainly due to databases potentially being in a state that could cause data loss.
99

1010
There are 2 ways to run backups:
11+
1112
* From the menu: `Backup and Restore` > `Run backup`
1213
* Running the following command: `bash ./scripts/backup.sh`
1314

@@ -21,6 +22,7 @@ The current directory of bash must be in IOTstack's directory, to ensure that it
2122
```
2223
./scripts/backup.sh {TYPE=3} {USER=$(whoami)}
2324
```
25+
2426
* Types:
2527
* 1 = Backup with Date
2628
* A tarball file will be created that contains the date and time the backup was started, in the filename.
@@ -33,10 +35,12 @@ The current directory of bash must be in IOTstack's directory, to ensure that it
3335
If this parameter is not supplied when run as root, the script will ask for the username as input
3436

3537
Backups:
38+
3639
* You can find the backups in the ./backups/ folder. With rolling being in ./backups/rolling/ and date backups in ./backups/backup/
3740
* Log files can also be found in the ./backups/logs/ directory.
3841

3942
### Examples:
43+
4044
* `./scripts/backup.sh`
4145
* `./scripts/backup.sh 3`
4246

@@ -52,6 +56,7 @@ This will only produce a backup in the rollowing folder and change all the permi
5256

5357
## Restore
5458
There are 2 ways to run a restore:
59+
5560
* From the menu: `Backup and Restore` > `Restore from backup`
5661
* Running the following command: `bash ./scripts/restore.sh`
5762

@@ -64,6 +69,7 @@ There are 2 ways to run a restore:
6469
./scripts/restore.sh {FILENAME=backup.tar.gz} {noask}
6570
```
6671
The restore script takes 2 arguments:
72+
6773
* Filename: The name of the backup file. The file must be present in the `./backups/` directory, or a subfolder in it. That means it should be moved from `./backups/backup` to `./backups/`, or that you need to specify the `backup` portion of the directory (see examples)
6874
* NoAsk: If a second parameter is present, is acts as setting the no ask flag to true.
6975

docs/Custom.md renamed to docs/Basic_setup/Custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ services:
125125
environment:
126126
```
127127

128-
This will remove the default environment variables set in the template, and tell docker-compose to use the variables specified in your file. It is not mandatory that the *.env file be placed in the service's service directory, but is strongly suggested. Keep in mind the [PostBuild Script](https://sensorsiot.github.io/IOTstack/PostBuild-Script) functionality to automatically copy your *.env files into their directories on successful build if you need to.
128+
This will remove the default environment variables set in the template, and tell docker-compose to use the variables specified in your file. It is not mandatory that the *.env file be placed in the service's service directory, but is strongly suggested. Keep in mind the [PostBuild Script](../Developers/PostBuild-Script.md) functionality to automatically copy your *.env files into their directories on successful build if you need to.
129129

130130
### Adding custom services
131131

docs/Default-Configs.md renamed to docs/Basic_setup/Default-Configs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Build Stack Default Passwords for Services
1+
# Default Passwords and ports
22

33
Here you can find a list of the default configurations for IOTstack for quick referece.
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)