[ 
https://issues.apache.org/jira/browse/AIRFLOW-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15968900#comment-15968900
 ] 

Semet commented on AIRFLOW-964:
-------------------------------

Look like base_url is not supported by Airflow so far

> set Flask APPLICATION_ROOT the same to base_url in airflow.cfg 
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-964
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-964
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: lambdaq
>            Priority: Minor
>
> Hello,
> I tried to setup airflow in a restricted host, all web interface has to be 
> exposed via a reverse proxy like:
> https://server_ip/fixed_prefix/airflow/
> The reversed proxy is setup properly, airflow homepage was displayed, but 
> some of the AJAX API calls failed.
> Open chrome console shows 
> /admin/airflow/blocked was 404 not found
> The code was like
>       d3.json("/admin/airflow/blocked", function(error, json) {
>         $.each(json, function() {
> The template source code was on airflow/www/templates/airflow/list_dags.html
>       stroke_width_hover = 6;
>       d3.json("{{ url_for('airflow.dag_stats') }}", function(error, json) {
>         for(var dag_id in json) {
>             states = json[dag_id];
> So I am wondering if we can change Flask's app.config["APPLICATION_ROOT"] to 
> the same as 
> [webserver]
> baseurl = /fixed_prefix/airflow/
> found in airflow.cfg
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to