diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4024a47f..dfc7d5b5 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -39,6 +39,10 @@ if [[ "$TEMPLATE_CONFIG" = 'true' && ! -f "$OWGW_CONFIG"/owgw.properties ]]; the SYSTEM_URI_PUBLIC=${SYSTEM_URI_PUBLIC:-"https://localhost:16002"} \ SYSTEM_URI_UI=${SYSTEM_URI_UI:-"http://localhost"} \ SIMULATORID=${SIMULATORID:-""} \ + IPTOCOUNTRY_PROVIDER=${IPTOCOUNTRY_PROVIDER:-"ipinfo"} \ + IPTOCOUNTRY_IPINFO_TOKEN=${IPTOCOUNTRY_IPINFO_TOKEN:-""} \ + IPTOCOUNTRY_IPDATA_APIKEY=${IPTOCOUNTRY_IPDATA_APIKEY:-""} \ + AUTOPROVISIONING_PROCESS=${AUTOPROVISIONING_PROCESS:-"prov,default"} \ RTTY_ENABLED=${RTTY_ENABLED:-"false"} \ RTTY_SERVER=${RTTY_SERVER:-"localhost"} \ RTTY_PORT=${RTTY_PORT:-"5912"} \ diff --git a/owgw.properties.tmpl b/owgw.properties.tmpl index a90b4513..c640ec40 100644 --- a/owgw.properties.tmpl +++ b/owgw.properties.tmpl @@ -52,8 +52,8 @@ openwifi.fileuploader.host.0.cert = ${FILEUPLOADER_HOST_CERT} openwifi.fileuploader.host.0.key = ${FILEUPLOADER_HOST_KEY} openwifi.fileuploader.host.0.key.password = ${FILEUPLOADER_HOST_KEY_PASSWORD} openwifi.fileuploader.path = ${FILEUPLOADER_PATH} -openwifi.fileuploader.uri = ${FILEUPLOADER_URI} openwifi.fileuploader.maxsize = 10000 +openwifi.fileuploader.uri = ${FILEUPLOADER_URI} # # Generic section that all microservices must have @@ -75,9 +75,15 @@ openwifi.devicetypes.0 = AP:linksys_ea8300,edgecore_eap101,linksys_e8450-ubi openwifi.devicetypes.1 = SWITCH:edgecore_ecs4100-12ph openwifi.devicetypes.2 = IOT:esp32 oui.download.uri = https://linuxnet.ca/ieee/oui.txt -firmware.autoupdate.policy.default = auto simulatorid = ${SIMULATORID} +iptocountry.default = US +iptocountry.provider = ${IPTOCOUNTRY_PROVIDER} +iptocountry.ipinfo.token = ${IPTOCOUNTRY_IPINFO_TOKEN} +iptocountry.ipdata.apikey = ${IPTOCOUNTRY_IPDATA_APIKEY} + +autoprovisioning.process = ${AUTOPROVISIONING_PROCESS} + # # rtty #