mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
soft code
This commit is contained in:
parent
743db0a11f
commit
8eb713a1c8
2 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ lokole_venv: "{{ lokole_install_path }}/venv" # /library/lokole/venv
|
|||
# Info needed to run Lokole:
|
||||
lokole_user: lokole
|
||||
lokole_url: /lokole
|
||||
lokole_run_directory: "/home/{{ lokole_user }}/state"
|
||||
lokole_run_directory: /home/{{ lokole_user }}/state
|
||||
lokole_domain_socket: "{{ lokole_run_directory }}/lokole_gunicorn.sock"
|
||||
lokole_sim_type: LocalOnly
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
location = {{ lokole_url }}/favicon.ico {
|
||||
alias /library/lokole/venv/lib/python{{ python_ver }}/site-packages/opwen_email_client/webapp/static/favicon.ico;
|
||||
alias {{ lokole_venv }}/lib/python{{ python_ver }}/site-packages/opwen_email_client/webapp/static/favicon.ico;
|
||||
}
|
||||
|
||||
location ~ ^{{ lokole_url }}/static/(.*)$ {
|
||||
alias /library/lokole/venv/lib/python{{ python_ver }}/site-packages/opwen_email_client/webapp/static/$1;
|
||||
alias {{ lokole_venv }}/lib/python{{ python_ver }}/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;
|
||||
proxy_pass http://unix:/{{ lokole_domain_socket }};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue