|
|
# Current Infrastructure
|
|
|
# Current Infrastructure
|
|
|

|
|
|
|
|
|
[Edit link](https://drive.google.com/file/d/1RVMcXwhoyex6TNLx1B71AeqVNfA-i5Mh/view?usp=sharing)
|
|
|
|
... | ... | @@ -27,14 +28,6 @@ server { |
|
|
ssl_prefer_server_ciphers on;
|
|
|
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
|
|
|
|
|
|
location /socket/createToken/ {
|
|
|
proxy_set_header HOST $host;
|
|
|
proxy_http_version 1.1;
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection upgrade;
|
|
|
proxy_pass http://licode:3001/createToken/;
|
|
|
}
|
|
|
|
|
|
location / {
|
|
|
proxy_set_header HOST $host;
|
|
|
proxy_http_version 1.1;
|
... | ... | @@ -43,24 +36,12 @@ server { |
|
|
proxy_pass https://acc/;
|
|
|
}
|
|
|
|
|
|
location /socket/socket.io/ {
|
|
|
proxy_pass http://licode:8080/socket.io/;
|
|
|
|
|
|
location /test/ {
|
|
|
proxy_set_header HOST $host;
|
|
|
proxy_http_version 1.1;
|
|
|
proxy_redirect off;
|
|
|
|
|
|
proxy_set_header 'Access-Control-Allow-Origin' '*';
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
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_set_header X-Forwarded-Proto $scheme;
|
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
proxy_read_timeout 86400;
|
|
|
proxy_set_header Connection upgrade;
|
|
|
proxy_pass https://testacc/;
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
|
|
|
## MongoDB Start
|
|
|
<pre>docker run -d --name mongodb -p 3001:27017 -v /home/mongodb/data:/data/db -e MONGO_INITDB_ROOT_USERNAME=ksystem -e MONGO_INITDB_ROOT_PASSWORD=15ksystem mongo</pre> |
|
|
\ No newline at end of file |