File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -701,8 +701,8 @@ def get_env_variable(var_name, is_optional=False):
701701BC_TILESERVER_URLS = {
702702 "maps" : "https://maps.gov.bc.ca/" ,
703703 "openmaps" : TILESERVER_URL ,
704- "local" : "http://bcap-pg_tileserv7-6:7800/" ,
705- "local-feature" : "http://bcap-pg_featureserv7-6:9000/" ,
704+ "local" : get_env_variable ( "TILESERVER_LOCAL_URL" ) ,
705+ "local-feature" : get_env_variable ( "FEATURESERVER_LOCAL_URL" ) ,
706706}
707707
708708AUTH_BYPASS_HOSTS = get_env_variable ("AUTH_BYPASS_HOSTS" )
Original file line number Diff line number Diff line change 1414 TranslateToResourceTypeView ,
1515)
1616from bcap .views .resource import ResourceReportView , ResourceEditLogView
17- from bcgov_arches_common .views .map import BCTileserverProxyView
17+ from bcgov_arches_common .views .map import BCTileserverProxyView , BCTileserverLocalProxyView
1818
1919uuid_regex = settings .UUID_REGEX
2020
3939 BCTileserverProxyView .as_view (),
4040 name = "bcap_tile_server" ,
4141 ),
42+ path (
43+ f"{ PREFIX } bclocaltileserver/" ,
44+ BCTileserverLocalProxyView .as_view (),
45+ name = "bcap_local_tile_server_root" ,
46+ ),
47+ path (
48+ f"{ PREFIX } bclocaltileserver/<path:path>" ,
49+ BCTileserverLocalProxyView .as_view (),
50+ name = "bcap_local_tile_server" ,
51+ ),
4252 path (
4353 f"{ PREFIX } borden_number/<uuid:resourceinstanceid>" ,
4454 BordenNumber .as_view (),
Original file line number Diff line number Diff line change @@ -87,4 +87,6 @@ OAUTH_SERVER_METADATA_URL={{ oauth_server_metadata_url }}
8787#OAUTHLIB_INSECURE_TRANSPORT=True
8888
8989#Local Tileserver config
90- TILESERVER_OUTBOUND_PROXY={{ proxy_env.https_proxy }}
90+ TILESERVER_OUTBOUND_PROXY={{ proxy_env.https_proxy }}
91+ TILESERVER_LOCAL_URL=http://localhost:{{ tileserv_http_listen_port }}/
92+ FEATURESERVER_LOCAL_URL=http://localhost:{{ featureserv_http_listen_port }}/
You can’t perform that action at this time.
0 commit comments