import os

# Server settings
address = "0.0.0.0"
port = "80"

debug = True
static_path = os.path.join(os.path.dirname(__file__), "static")
template_path = os.path.join(os.path.dirname(__file__), "templates")

cookie_secret='554451427aba042faa7f7c80ff8337717d7805d26af5707b5102b73fc873cef3'

# hydroshare oauth
oauth_client_id='s0fyGhESD7pDYcglnBFlPrHAmxxsiHpFBo27ROjU'
oauth_client_secret='ONVdVUUFMX53uhx6HxitcdMZhwF83yBhFKA6OUSO1NZJ2WrSFfTCWoohYkt56SzIotQsaJ1vse92DaoK9DCHB2JFp2IB7un6xCMZeoLBaPvLt3w8LtqGGExRSM5yfnuc'
oauth_callback_url='http://10.202.2.130/authorize'

# REDIS
redis_url = 'redis'
redis_port = '6379'

# multiprocessing settings
worker_count = 4

# logging settings
log_dir = '/share/appdata/logs'
log_file_size = 1024 * 20 * 1000
log_count = 10

# levels: DEBUG, INFO, WARNING, ERROR, CRITICAL
access_level = 'DEBUG'
application_level = 'DEBUG'
general_level = 'DEBUG'

# WRF-HYDRO settings
wrfdata = '/share/nwm.v1.2.4'
wrf2data = '/share/nwm.v2.0.0'

# Output subset directory
output_dir = '/share/appdata/output'

# Location of jobs database
sqldb = '/share/appdata/jobs.db'

# PARFLOW v1.0 settings
pfexedir = os.path.join(os.path.dirname(__file__), 'pfconus1/Subsetting')
pfdata_v1 = '/share/pfconus.v1.0'
pfmask = f'{pfdata_v1}/conus_1km_PFmask2.tif'
pflakesmask = f'{pfdata_v1}/conus_1km_PFmask_selectLakesmask.tif'
pflakesborder = f'{pfdata_v1}/conus_1km_PFmask_selectLakesborder.tif'
pfbordertype = f'{pfdata_v1}/1km_PF_BorderCellType.tif'
pfsinks = f'{pfdata_v1}/conus_1km_PFmask_manualsinks.tif'
pfslopex = f'{pfdata_v1}/slopex.tif'
pfslopey = f'{pfdata_v1}/slopey.tif'
pfgrid = f'{pfdata_v1}/grid3d.v3.tif'
pfpress = f'{pfdata_v1}/press.in.tif'
gbpl = f'{pfdata_v1}/naigbpl20.tif'
pftemplate = f'{pfdata_v1}/simulation.tcl'
