2022-03-02 04:02:38 +01:00
|
|
|
location @ofbiz {
|
|
|
|
proxy_pass https://127.0.0.1:__PORT__;
|
2022-03-01 20:18:50 +01:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for;
|
2022-02-28 23:39:48 +01:00
|
|
|
}
|
2022-03-02 04:02:38 +01:00
|
|
|
|
|
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
2024-03-22 17:56:39 +01:00
|
|
|
root __INSTALL_DIR__/framework/images/webapp/images;
|
2022-03-02 04:02:38 +01:00
|
|
|
try_files $uri $uri/ @ofbiz;
|
|
|
|
expires 3d;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2024-03-22 17:56:39 +01:00
|
|
|
root __INSTALL_DIR__/framework/images/webapp/images;
|
2022-03-02 04:02:38 +01:00
|
|
|
try_files $uri $uri/ @ofbiz;
|
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2024-03-22 17:56:39 +01:00
|
|
|
}
|