User Tools

Site Tools


this_site

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
this_site [2024/06/08 11:55] – created domin144this_site [2025/03/21 10:31] (current) domin144
Line 1: Line 1:
-====== This site run on home WiFi router ======+====== This site used to run on home WiFi router ====== 
 +{{indexmenu_n>30}} 
 + 
 +> UPDATE: The site has been moved to a much more powerful host: HP t620 thin client. This content is preserved for anyone interested in running their own site on a router.
  
 This runs on an old [[https://openwrt.org/toh/netgear/r6220|Netgear R6220]] Wi-Fi router with [[https://openwrt.org|OpenWrt]]. This runs on an old [[https://openwrt.org/toh/netgear/r6220|Netgear R6220]] Wi-Fi router with [[https://openwrt.org|OpenWrt]].
 +
 +{{:openwrt_r6220.jpg?400|}}
  
 ===== Access from Internet ===== ===== Access from Internet =====
Line 14: Line 19:
  
 Now I set up [[https://openwrt.org/docs/guide-user/services/ddns/client|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. Now I set up [[https://openwrt.org/docs/guide-user/services/ddns/client|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.
 +
 +{{:openwrt_setup.svg?600|}}
  
 ===== WWW server ===== ===== WWW server =====
  
 To cater for dokuwiki, I set up [[https://openwrt.org/docs/guide-user/services/webserver/uhttpd|uhttp]] + [[https://openwrt.org/docs/guide-user/services/webserver/php|php8]] server. The site for wiki was configured on port 8080 and 8443 not to conflict with luci configuration interface. To cater for dokuwiki, I set up [[https://openwrt.org/docs/guide-user/services/webserver/uhttpd|uhttp]] + [[https://openwrt.org/docs/guide-user/services/webserver/php|php8]] server. The site for wiki was configured on port 8080 and 8443 not to conflict with luci configuration interface.
 +
 +**WARNING** Don't forget about securing the `conf` and `data` directories of dokuwiki. Uhttpd's security options are limited, so the easiest way is to [[https://www.dokuwiki.org/security#move_directories_out_of_docroot|move these directories to somewhere out]] of the www root path.
  
 ===== SSL certificate ===== ===== SSL certificate =====
  
 The certificate is created and kept fresh using [[https://openwrt.org/docs/guide-user/services/tls/acmesh|acmesh]] script, which uses [[https://letsencrypt.org/|Let's encrypt]] service. Surprisingly no registration was needed for this. I used the webroot method. The certificate is created and kept fresh using [[https://openwrt.org/docs/guide-user/services/tls/acmesh|acmesh]] script, which uses [[https://letsencrypt.org/|Let's encrypt]] service. Surprisingly no registration was needed for this. I used the webroot method.
 +
 +===== Conclusion =====
 +
 +I was really surprised, that this all works. It did demand some mangling in the config files, but a lot of the configuration could be just clicked in the routers web UI.
 +
 +Another surprise is, that the only costs are internet access and the domain registration (and renewal), where the second could be avoided, if I settled with some free domain instead of the country wide one.
 +
 +Now, I realize this setup is not particularly secure and I exposed quite some details about it's internals. 
 +I keep a printer connected (Samsung ML-1865), so I wonder when will someone print me some greetings on it ;-)
this_site.1717847716.txt.gz · Last modified: 2024/06/08 11:55 by domin144