You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "lambdaq (JIRA)" <ji...@apache.org> on 2017/03/10 09:34:04 UTC
[jira] [Created] (AIRFLOW-964) set Flask APPLICATION_ROOT the same
to base_url in airflow.cfg
lambdaq created AIRFLOW-964:
-------------------------------
Summary: 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)