a
    Yi                     @  sf   d dl mZ d dlmZ d dlmZ d dlmZmZ ee	
 jd ZejZG dd deZe ZdS )	    )annotations)Path)Optional)BaseSettingsSettingsConfigDict   c                   @  s  e Zd ZU eed ed fdddZdZded< dZ	ded< dZ
ded	< d
Zded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded< dZded < dZded!< ed"d#d$d%Zed&d#d'd(Zd)S )*Settingsz.envzutf-8ignore)Zenv_fileZenv_file_encodingextra strline_channel_secretline_channel_access_tokenapp_base_urlzdemo-room-01line_default_room_idi  intjoin_token_ttl_secondsi  audience_session_ttl_seconds-   &audience_session_active_window_secondsTboolreset_runtime_state_on_startuphihaho_api_basehihaho_api_keyz/interactive/resolutionhihaho_branch_pathzMhttps://player.hihaho.com/embed/899f8135-e718-493e-b96d-516ac57263ae?api=truehihaho_player_urlzsqlite+aiosqlite:///./data.dbdatabase_urlzhttp://127.0.0.1:8000,http://localhost:8000,http://127.0.0.1:5500,http://localhost:5500,http://127.0.0.1:8080,http://localhost:8080cors_origins
static_dirhost_api_keyz	list[str])returnc                 C  s   dd | j dD S )Nc                 S  s   g | ]}|  r|  qS  )strip).0or!   r!   @C:\Users\jasmi\Projects\line-hihaho-voting\backend\app\config.py
<listcomp>/       z.Settings.cors_origins_list.<locals>.<listcomp>,)r   split)selfr!   r!   r%   cors_origins_list-   s    zSettings.cors_origins_listzOptional[Path]c                 C  s$   | j s
d S t| j }| r |S d S )N)r   r   is_dir)r*   pr!   r!   r%   static_path1   s    
zSettings.static_pathN)__name__
__module____qualname__r   _backend_root
_repo_rootmodel_configr   __annotations__r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   propertyr+   r.   r!   r!   r!   r%   r      s:   
	

r   N)
__future__r   pathlibr   typingr   Zpydantic_settingsr   r   __file__resolveparentsr2   parentr3   r   settingsr!   r!   r!   r%   <module>   s   -