remove INSTANCE_NAME from stand-alone tile server
This commit is contained in:
parent
a11c9caba1
commit
92ea19a329
1 changed files with 1 additions and 6 deletions
|
@ -24,12 +24,7 @@ class TileServer:
|
|||
def __init__(self):
|
||||
self.path_regex = re.compile(r'^/(\d+)/(\d+)/(-?\d+)/(-?\d+).png$')
|
||||
|
||||
try:
|
||||
self.instance_name = os.environ['C3NAV_INSTANCE_NAME']
|
||||
except KeyError:
|
||||
raise Exception('C3NAV_INSTANCE_NAME needs to be set.')
|
||||
|
||||
self.cookie_regex = re.compile(r'(^| )c3nav_'+re.escape(self.instance_name)+r'_tile_access="?([^;" ]+)"?')
|
||||
self.cookie_regex = re.compile(r'(^| )c3nav_tile_access="?([^;" ]+)"?')
|
||||
|
||||
try:
|
||||
self.upstream_base = os.environ['C3NAV_UPSTREAM_BASE'].strip('/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue