This is an old revision of the document!
Table of Contents
This site run on home WiFi router
This runs on an old Netgear R6220 Wi-Fi router with OpenWrt.
Access from Internet
Port forwarding
I am lucky enough, that my internet service provider provides me with public (though dynamic) IP and a configurable router. The ISP provided router get a dynamic public IP, all other devices are behind NAT. The router allows for port forwarding. In ISP provider router I assigned a fixed IP for my home router and forwarded external port 80 to home router's 8080 and external 443 to home 8443.
Dynamic DNS
The external IP is dynamic. To get reliable access I needed a domain name. I already had my domain name registered, but my registrar did not support dynamic DNS. I got myself a free account on cluodflare and added my domain there. Cloudflare provides two DNS servers, which I set at my registrars control panel to handle the domain. I did not enable cloudflare proxy - this would complicate checking, if current address is valid.
Now I set up dyndns client in openwrt to update the IP, whenever it is changed. The WAN interface of my home router does not get the public IP, so t get the public IP, I had to make the ddns client use the URL method for this.
WWW server
To cater for dokuwiki, I set up uhttp + php8 server. The site for wiki was configured on port 8080 and 8443 not to conflict with luci configuration interface.
SSL certificate
The certificate is created and kept fresh using acmesh script, which uses Let's encrypt service. Surprisingly no registration was needed for this. I used the webroot method.