Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Synergy Constructor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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 Constructor
Commits
901cddf3
Commit
901cddf3
authored
Sep 09, 2021
by
Elizaveta Kakhovskaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.rst
parent
efea07f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
install_guide/index.rst
install_guide/index.rst
+23
-20
No files found.
install_guide/index.rst
View file @
901cddf3
...
@@ -59,35 +59,38 @@
...
@@ -59,35 +59,38 @@
В ``nginx.conf`` в ``http`` прописать:
В ``nginx.conf`` в ``http`` прописать:
.. code-block:: html
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
map $http_upgrade $connection_upgrade {
upstream websocket {
default upgrade;
server 127.0.0.1:8080;
'' close;
}
}
upstream websocket {
server 127.0.0.1:8080;
}
В ``synergy.base``:
В ``synergy.base``:
.. code-block:: html
location /constructor/websocket {
location /constructor/websocket {
proxy_pass http://websocket;
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Connection "Upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
В случае добавления ``ws`` для нескольких серверов на ``DNS``-сервере запись ``upstream`` в ``nginx.conf`` может выглядеть так:
В случае добавления ``ws`` для нескольких серверов на ``DNS``-сервере запись ``upstream`` в ``nginx.conf`` может выглядеть так:
.. code-block:: html
upstream websocket {
upstream websocket {
server 192.168.3.1:8080;
server 192.168.3.1:8080;
server 192.168.3.2:8080;
server 192.168.3.2:8080;
}
}
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