o
    æ5øj¨  ã                   @   sŠ   d Z ddlZe dd¡ d¡Ze dd¡ d¡pdZe dd	¡Zee d
e dd¡¡ƒZe dd¡Z	e dd¡Z
e dd¡Zddd„ZdS )zÙDeployment configuration for the LaksyaShrimp Flask application.

The Flask process still listens on an internal port (normally 5899), but all
public/customer-facing links and QR codes use the CIBA reverse-proxy URL.
é    NÚPUBLIC_BASE_URLz https://ciba.res.in/laksyashrimpú/ÚPUBLIC_PATHz/laksyashrimpÚ
FLASK_HOSTz0.0.0.0Ú
FLASK_PORTÚFLASK_RUN_PORTÚ5899ÚAUTH_USERNAMEÚadminÚAUTH_PASSWORDz
laksya@123Ú
SECRET_KEYzchange-this-secret-keyÚ c                 C   s¤   t | pdƒ} |  d¡s|  d¡r| S |  d¡sd|  } tdkr-| tks*|  td ¡r-| }ntdkr7t› | › �n| }t› tdkrN| t¡rN|ttƒd… › �S |› �S )z?Return an absolute public URL for an application-relative path.r   zhttp://zhttps://r   N)ÚstrÚ
startswithr   r   Úlen)ÚpathÚpublic_path© r   ú	config.pyÚ
public_url!   s   
2r   )r   )Ú__doc__ÚosÚgetenvÚrstripr   r   r   Úintr   r	   r   r   r   r   r   r   r   Ú<module>   s    þý