Host websites inside a network and expose access to them via their own sub-domain.
608
This is a tool to make local services served in a community network available to the outside internet. The intention is to
You create an http service in the local community network. Then, you go to this service installation for your community.
You put in your ip address, your server name and your port. When you submit, your website should be available under the hostname you entered.
You can setup the server for your community in case the server is not there.
wget -O- https://get.docker.com | sh
docker run -p "80:80" -e "DOMAIN=MY-DOMAIN" -d --rm niccokunzmann/freifunk-website-proxy
quelltext.selfhost.eu free of charge.
Now, you pay 2€/year and you buy quelltext.eu.
Then, you setup the CNAME record *.quelltext.eu to point to quelltext.selfhost.eu.my-community.quelltext.eu.freifunk-potsdam.de.
They can setup service.freifunk-potsdam.de and *.service.freifunk-potsdam.de to point to your domain.Once these steps are undergone, you should be able to access your server from the internet using your domain and be able to register new clients. Note that this looks like a lot bot this would be necessary for many more people to provide their services. Once this is done, they have a much easier process to share their site.
The configuration of the service is done via environment variables. This is the configuration you should touch:
DOMAIN default localhostNETWORK default 10.0.0.0/810.22.0.0/16.This is configuration you can touch:
DATABASE/data/db.pickle which holds the state of the proxy.SOURCE_CODE/app-Run the server
python3 -m freifunk_website_proxy
Build the server and run it
docker build --tag niccokunzmann/freifunk-website-proxy . && docker run -p "9000:80" -e "DOMAIN=localhost:9000" -it --rm niccokunzmann/freifunk-website-proxy
Now, you can reach your server under http://localhost:9000.
Run the tests
watch -n 0.5 pytest
Content type
Image
Digest
Size
21.5 MB
Last updated
over 7 years ago
docker pull niccokunzmann/freifunk-website-proxy