Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Synergy Showcase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public Documentation
Synergy Showcase
Commits
5448b7b2
Commit
5448b7b2
authored
Jan 15, 2019
by
Danir Tlepov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DOCR-659
parent
84d352c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
53 deletions
+8
-53
introduction-guide/src/first_tuning.rst
introduction-guide/src/first_tuning.rst
+8
-53
No files found.
introduction-guide/src/first_tuning.rst
View file @
5448b7b2
...
@@ -40,89 +40,44 @@
...
@@ -40,89 +40,44 @@
.. 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;
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/asforms/form_ext {
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 ~* /Synergy/rest/api/formPlayer/documentIdentifier {
location ~* /Synergy/rest/api/asforms/data/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 ~* /Synergy/rest/api/storage/file/get {
.. hint:: Настройки кэширования nginx задаются в файле ``/etc/nginx/nginx.conf`` строкой:
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;
.. code-block:: xml
proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h;
proxy_cache_lock on;
}
location ~* /Synergy/rest/api/storage/icons/get {
proxy_cache_path /var/temp/nginx levels=1 keys_zone=portal:30m max_size=1G use_temp_path=off inactive=1d;
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;
Подробное описание параметров можно `прочитать по ссылке <http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_cache_path>`_.
proxy_ignore_headers Cache-Control Expires Set-Cookie;
proxy_cache_valid 200 1h;
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 {
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;
}
Install/upgrade configuration
Install/upgrade configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment