a
    ´n«já  ã                   @   sf   d Z ddlZe dd¡ d¡Ze dd¡ d¡p2dZe dd	¡Zee d
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_PORTZFLASK_RUN_PORTZ5899Ú c                 C   s    t | pdƒ} |  d¡s |  d¡r$| S |  d¡s6d|  } tdkrZ| tksT|  td ¡rZ| }ntdkrnt› | › �n| }t› tdkr˜| t¡r˜|ttƒd… n|› �S )z?Return an absolute public URL for an application-relative path.r   zhttp://zhttps://r   N)ÚstrÚ
startswithr   r   Úlen)ÚpathZpublic_path© r   ú$/var/www/html/laksyashrimp/config.pyÚ
public_url   s    
r   )r   )
Ú__doc__ÚosÚgetenvÚrstripr   r   r   Úintr   r   r   r   r   r   Ú<module>   s   þý