Commit 76be4db7 authored by Danir Tlepov's avatar Danir Tlepov

Updated nginx config for cache

parent 9c94f08b
...@@ -40,79 +40,26 @@ ...@@ -40,79 +40,26 @@
.. code-block:: xml .. code-block:: xml
location ~* /Synergy/rest/api/registry/data_ext { location ~* /sap/proxy/uservice/image {
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080;
proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h;
proxy_cache_lock on;
}
location ~* /Synergy/rest/api/asforms/form_ext {
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080;
proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h;
proxy_cache_lock on;
}
location ~* /Synergy/rest/api/asforms/data/get {
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080;
proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h;
proxy_cache_lock on;
}
location ~* /Synergy/rest/api/storage/file/get {
add_header X-Cache-Status $upstream_cache_status; add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080; proxy_pass http://127.0.0.1:8080;
proxy_cache portal; proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie; proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h; proxy_cache_valid 200 1d;
proxy_cache_lock on; proxy_cache_lock on;
} }
location ~* /Synergy/rest/api/registry/data_ext {
location ~* /Synergy/rest/api/storage/icons/get {
add_header X-Cache-Status $upstream_cache_status; add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080; proxy_pass http://127.0.0.1:8080;
proxy_cache portal; proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie; proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h; proxy_cache_valid 200 1h;
proxy_cache_lock on; proxy_cache_lock on;
} }
location ~* /sap/proxy/uservice/image {
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080;
proxy_cache portal;
proxy_ignore_headers Cache-Control Expires Set-Cookie X-Accel-Expires;
# proxy_cache_bypass $http_pragma;
proxy_cache_valid 200 1h;
proxy_cache_lock on;
access_log /var/log/nginx/sap.cache.log cache;
}
location ~* /Synergy/rest/api/formPlayer/documentIdentifier { location ~* /Synergy/rest/api/formPlayer/documentIdentifier {
add_header X-Cache-Status $upstream_cache_status; add_header X-Cache-Status $upstream_cache_status;
proxy_set_header Host $host; proxy_set_header Host $host;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment