You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/25 21:50:05 UTC

[GitHub] [airflow] raulk89 opened a new issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

raulk89 opened a new issue #10569:
URL: https://github.com/apache/airflow/issues/10569


   **Apache Airflow version**: 1.10.11, 1.10.12
   
   **Environment**: Virtual machine
   
   - **OS** (e.g. from /etc/os-release): CentOS Linux release 7.8.2003 (Core)
   - **Kernel** (e.g. `uname -a`): 3.10.0-1127.18.2.el7.x86_64
   - **Install tools**: yum, pip3
   - **Others**:
   
   **What happened**: After executing DAG, I clicked on "running tasks", then opens up this page, where there is "Log Url" link. But this one does not open, since I am using it behind nginx proxy.
   
   ![image](https://user-images.githubusercontent.com/25365468/91230793-d4a32a00-e734-11ea-9b1d-3b0d0a80561f.png)
   
   
   **What you expected to happen**:  The "Log Url" should be "https://hostname:443/..."
   
   **How to reproduce it**:
   
   **Just make sure that your ariflow webserver runs on http://localhost:8080, then**
   `# yum install nginx`
   
   **Add virtualhost conf and add the following:**
   _You can probably get by with just using port 80 also, then you do not need ssl and certs_
   _And then your application opens up http://hostname:80_
   
   vi /etc/nginx/conf.d/airflow_webserver_proxy.conf
   ```
   server {
    listen 80;
    server_name hostname.domain.com;
    return 301 https://$host$request_uri;
   }
   
   server {
    listen 443 ssl http2;
    server_name hostname.domain.com;
   
    location / {
     proxy_pass http://localhost:8080;
     proxy_set_header Host $host;
    }
   
    ssl_certificate /etc/pki/tls/certs/<<location to .cer file>>;
    ssl_certificate_key /etc/pki/tls/private/<<location to .key file>>;
   
    ssl_session_timeout 60m;
    ssl_dhparam /etc/ssl/certs/<<self signed cert>>;
   
    ssl_protocols TLSv1.2;
    add_header Strict-Transport-Security "max-age=31536000;" always;
   
   }
   ```
   `# systemctl start nginx`
   
   And then open up web browser, start a random DAG, click on "running task" and then there should be this "Log Url"
   
   **Anything else we need to know**: It happens always.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] raulk89 commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
raulk89 commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680287641


   Well this :443 is omitted from the URL ofcourse, since it is https default port.
   So URL is: 
   `https://hostname.domain.com/...`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680318723


   What is your value for `base_url` option in `webserver` section ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] raulk89 edited a comment on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
raulk89 edited a comment on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680536818


   http://localhost:8080
   
   I am using rbac also (airflow.cfg file rbac = True)
   
   Haven't noticed that any other link is broken except this "Log Url".
   
   Raul
   
   Sent from my iPhone
   
   > On 26. Aug 2020, at 02:29, Kamil Breguła <no...@github.com> wrote:
   > 
   > 
   > What is your value for base_url option in webserver section ?
   > 
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] raulk89 edited a comment on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
raulk89 edited a comment on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680536818


   http://localhost:8080
   
   I am using rbac also (airflow.cfg file rbac = True)
   
   Haven't noticed that any other link is broken.
   
   Raul
   
   Sent from my iPhone
   
   > On 26. Aug 2020, at 02:29, Kamil Breguła <no...@github.com> wrote:
   > 
   > 
   > What is your value for base_url option in webserver section ?
   > 
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680286955


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] raulk89 commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
raulk89 commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-681354052


   Why https..?
   All other links are fine with http://localhost:8080
   
   Raul
   
   Sent from my iPhone
   
   > On 27. Aug 2020, at 02:18, Kamil Breguła <no...@github.com> wrote:
   > 
   > 
   > @raulk89 it should be set to https://localhost:8080.
   > 
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-681172171


   @raulk89  it should be set to ``https://localhost:8080``.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] raulk89 commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
raulk89 commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-680536818


   http://localhost:8080
   
   Raul
   
   Sent from my iPhone
   
   > On 26. Aug 2020, at 02:29, Kamil Breguła <no...@github.com> wrote:
   > 
   > 
   > What is your value for base_url option in webserver section ?
   > 
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] JeroniMan commented on issue #10569: Airflow shows "Log Url" localhost:8080, although I am using airflow behind nginx proxy on hostname:443 port

Posted by GitBox <gi...@apache.org>.
JeroniMan commented on issue #10569:
URL: https://github.com/apache/airflow/issues/10569#issuecomment-850895252


   @raulk89, hi, i have the same problem. Did you solve it? I try solutions from this issues, but it doesn't help me .. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org