mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
nginx config file
This commit is contained in:
parent
4d14dd4fa5
commit
1942ea206a
1 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,14 @@
|
|||
location {{ lokole_url }}/ {
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }}{{ lokole_url }}/;
|
||||
location = {{ lokole_url }}/favicon.ico {
|
||||
alias /library/lokole/venv/lib/python3.8/site-packages/opwen_email_client/webapp/static/favicon.ico;
|
||||
}
|
||||
|
||||
location ~ ^/{{ lokole_url }}/static/(.*)$ {
|
||||
alias /library/lokole/venv/lib/python3.8/site-packages/opwen_email_client/webapp/static/$1;
|
||||
}
|
||||
|
||||
location /{{ lokole_url }}/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://unix:/home/lokole/state/lokole_gunicorn.sock;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue