I'm trying to install Apache-Airflow on Opalstack and am assuming that I need to use following instructions to do so on an Nginx Proxy Application:
https://airflow.apache.org/docs/apache-airflow/stable/howto/run-behind-proxy.html
My folder structure is:
project_folder
|_airflow
|_airflow.cfg
|_webserver_config.py
|_wsgi.py
|_env
|_start
|_stop
|_uwsgi.ini
My path/to/myproject/uwsgi.ini file is configured as follows:
[uwsgi]
master = True
http-socket = 127.0.0.1:9999
virtualenv = /path/to/myproject/env/
daemonize = /path/to/myproject/uwsgi.log
pidfile = /path/to/myproject/tmp/myapp.pid
workers = 2
threads = 2
# adjust the following to point to your project
wsgi-file = /path/to/myproject/airflow/wsgi.py
touch-reload = /path/to/myproject/airflow/wsgi.py
and currently the /path/to/myproject/airflow/wsgi.py looks as follows:
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b'Hello World!']
I'm not sure where to edit the nginx.conf settings, as I don't have permissions to access them in etc/nginx/. Also not sure if I can do this by just changing uWSGI settings, as there doesn't seem to be any good documentation on Airflow and uWSGI. Any ideas?
I've seen that something seems to be possible with PHP stack, and was wondering how to do this with python only. Appreciate the help!