Commit a637202f authored by rgaudin's avatar rgaudin
Browse files

Fixed #248: setup a fixed, static URL to get to Hotspot Homepage

- Using http://goto.kiwix.hotspot
	using a subdomain to prevent conflict with "kiwix.hotspot" which is a valid choice.
- HTTP redirect (301) to the actual, custom Kiwix Hotspot URL
parent e0cd7f08
......@@ -9,6 +9,7 @@ max_wifi_client: 15
hostname: ideasbox
tld: "hotspot"
fqdn: "{{ hostname }}.{{ tld }}"
welcome_fqdn: "goto.kiwix.{{ tld }}"
cert_domain: ideascube.{{ tld }}
hotspot_name: ideasbox
project_name: ideasbox
......
......@@ -9,6 +9,7 @@ expand-hosts
bogus-priv
domain={{ fqdn }},192.168.2.0/24,local
address=/{{ welcome_fqdn }}/{{ hotspot_ip }}
address=/{{ fqdn }}/{{ hotspot_ip }}
address=/{{ hostname }}/{{ hotspot_ip }}
address=/#/{{ hotspot_ip }}
......
......@@ -9,6 +9,7 @@ expand-hosts
bogus-priv
domain={{ fqdn }},192.168.2.0/24,local
address=/{{ welcome_fqdn }}/{{ hotspot_ip }}
address=/{{ fqdn }}/{{ hotspot_ip }}
address=/{{ hostname }}/{{ hotspot_ip }}
server=8.8.8.8
......
......@@ -35,6 +35,12 @@
notify: restart nginx
tags: master
- name: install welcome redirect
template:
src: welcome.j2
dest: /etc/nginx/sites-enabled/welcome
tags: ['master', 'rename']
- name: install default placeholder vhost for services
template:
src: placeholder.j2
......
server {
listen 80;
server_name {{ welcome_fqdn }};
return 301 http://{{ fqdn }};
}
  • Hi would you consider implementing this via the lighthttp hotspot that's provided by https://github.com/chootka/subnodes-lighttpd

    If you ran those scripts It would mean that 'extender' Pi Zero's could be added to the mesh at a cost of around £10/node.

  • @sam_uk We use nginx, so we can not use the script, straight away, you talk about. But let discuss about that in the ticket you have open.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment