Commit 20b6c431 authored by dario's avatar dario

config: default local_networks to [], add doc

parent 3baee506
......@@ -47,6 +47,12 @@
theme to use for request to a given hostname. This
overwrites ~default_theme~. See also [[file:themes.txt]].
(type: [(String, String)])
- local_networks :: A list of network ranges (as strings) in the
format '10.0.0.0/8' or any format described at
https://pythonhosted.org/netaddr/ that should be
considered "internal" addresses. only these are
allowed to access files with the
`internal_net_only` meta value set to True
Note, that the various *url config options are acutal URLs, while the *dir
......@@ -72,6 +78,12 @@
mailfrom = "foo@example.com"
sendmails = False
local_networks = [ '131.188.0.0/16',
'2001:638:a000::/45',
'192.168.0.0/16',
'10.0.0.0/8',
'172.16.0.0/12' ]
#+END_EXAMPLE
* Hosting
......
......@@ -30,10 +30,9 @@ pdf2txt = "pdf2txt"
themes_by_url = []
default_theme = "fsi_inf"
local_networks = [ '131.188.0.0/16',
'2001:638:a000::/45',
'192.168.0.0/16',
'10.0.0.0/8',
'172.16.0.0/12' ]
## list all ip addresses that are to be considered your local/internal
## network here. the required format is documented at
## https://pythonhosted.org/netaddr/
local_networks = []
from config.local import *
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