| 1 | user www-data www-data;
|
|---|
| 2 | pid /var/run/nginx.pid;
|
|---|
| 3 | worker_processes 4;
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | events {
|
|---|
| 7 | worker_connections 12500;
|
|---|
| 8 | # multi_accept on;
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | http {
|
|---|
| 12 | sendfile on;
|
|---|
| 13 | merge_slashes on;
|
|---|
| 14 | tcp_nopush on;
|
|---|
| 15 | tcp_nodelay on;
|
|---|
| 16 | keepalive_timeout 110;
|
|---|
| 17 | types_hash_max_size 2048;
|
|---|
| 18 | server_tokens off;
|
|---|
| 19 |
|
|---|
| 20 | include /etc/nginx/mime.types;
|
|---|
| 21 | default_type application/octet-stream;
|
|---|
| 22 |
|
|---|
| 23 | log_format ss_log_format "active\t[ $pid ]\t$remote_addr\t$http_user_agent\t$upstream_http_x_user_identity\t$http_x_client_id\t$http_x_request_id\t$ssl_cipher\t$request_method\t$uri\t$args\t$upstream_http_x_durations\t$status\t$http_x_error_code\t$connection_requests\t$request_completion\t$content_length\t$request_length\t$body_bytes_sent\t$bytes_sent";
|
|---|
| 24 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=others,facility=local5,severity=warn warn;
|
|---|
| 25 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=others,facility=local6,severity=warn ss_log_format;
|
|---|
| 26 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=others,facility=local5,severity=warn warn;
|
|---|
| 27 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=others,facility=local6,severity=warn ss_log_format;
|
|---|
| 28 | map $http_upgrade $connection_upgrade {
|
|---|
| 29 | default upgrade;
|
|---|
| 30 | '' close;
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | upstream wopi_srv {
|
|---|
| 36 | server localhost:8400;
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | upstream provisioning-active {
|
|---|
| 45 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-0.sock;
|
|---|
| 46 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-1.sock;
|
|---|
| 47 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-2.sock;
|
|---|
| 48 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-3.sock;
|
|---|
| 49 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-4.sock;
|
|---|
| 50 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-5.sock;
|
|---|
| 51 | server unix:/opt/securisync/be-active/var/run/uwsgi-provisioning-active-6.sock;
|
|---|
| 52 | }
|
|---|
| 53 | upstream testing-active {
|
|---|
| 54 | server unix:/opt/securisync/be-active/var/run/uwsgi-testing-active-0.sock;
|
|---|
| 55 | }
|
|---|
| 56 | upstream internal-active {
|
|---|
| 57 | server unix:/opt/securisync/be-active/var/run/uwsgi-internal-active-0.sock;
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | upstream rabbitmq {
|
|---|
| 61 | server imfmrb-va.filemirror.local:15672;
|
|---|
| 62 | }
|
|---|
| 63 | upstream elastichq {
|
|---|
| 64 | server imfmes-va.filemirror.local:9200;
|
|---|
| 65 | }
|
|---|
| 66 | upstream internal_auth {
|
|---|
| 67 | server unix:/opt/securisync/be-active/var/run/uwsgi-internal_auth.sock;
|
|---|
| 68 | }
|
|---|
| 69 | proxy_buffer_size 128k;
|
|---|
| 70 | proxy_buffers 4 256k;
|
|---|
| 71 | proxy_busy_buffers_size 256k;
|
|---|
| 72 |
|
|---|
| 73 | server {
|
|---|
| 74 | listen 443 default_server;
|
|---|
| 75 | server_name admin.imsync.myonlinedata.net dev0fmall-xxx-1.filemirror.local ;
|
|---|
| 76 | add_header Strict-Transport-Security "max-age=15638400; includeSubdomains; preload" always;
|
|---|
| 77 | ssl on;
|
|---|
| 78 | ssl_certificate /etc/ssl/certs/admin.imsync.myonlinedata.net.pem;
|
|---|
| 79 | ssl_certificate_key /etc/ssl/private/admin.imsync.myonlinedata.net.key;
|
|---|
| 80 | ssl_session_timeout 5m;
|
|---|
| 81 | ssl_ciphers "HIGH MEDIUM !aNULL !eNULL !LOW -3DES !MD5 !EXP !PSK !SRP !DSS !RC4 !DH DES-CBC3-SHA";
|
|---|
| 82 | ssl_prefer_server_ciphers on;
|
|---|
| 83 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|---|
| 84 | ssl_session_cache shared:SSL:512k;
|
|---|
| 85 |
|
|---|
| 86 | root /opt/securisync/be-2.dev/var/www/;
|
|---|
| 87 |
|
|---|
| 88 | index index.html;
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | gzip on;
|
|---|
| 92 | gzip_min_length 1000;
|
|---|
| 93 | gzip_proxied expired no-cache no-store private auth;
|
|---|
| 94 | gzip_types application/json;
|
|---|
| 95 |
|
|---|
| 96 | client_max_body_size 500m;
|
|---|
| 97 | client_body_buffer_size 128k;
|
|---|
| 98 | server_tokens off;
|
|---|
| 99 |
|
|---|
| 100 | uwsgi_buffering on;
|
|---|
| 101 | uwsgi_buffer_size 64k;
|
|---|
| 102 | uwsgi_buffers 8 64k;
|
|---|
| 103 | uwsgi_busy_buffers_size 64k;
|
|---|
| 104 | uwsgi_connect_timeout 600s;
|
|---|
| 105 | uwsgi_read_timeout 600s;
|
|---|
| 106 | uwsgi_send_timeout 600s;
|
|---|
| 107 | uwsgi_force_ranges on;
|
|---|
| 108 | uwsgi_intercept_errors on;
|
|---|
| 109 | uwsgi_request_buffering on;
|
|---|
| 110 | uwsgi_max_temp_file_size 1024m;
|
|---|
| 111 | # uwsgi_next_upstream error timeout;
|
|---|
| 112 | uwsgi_next_upstream error;
|
|---|
| 113 | uwsgi_next_upstream_tries 2;
|
|---|
| 114 |
|
|---|
| 115 | location /nginx_status {
|
|---|
| 116 | stub_status on;
|
|---|
| 117 | access_log off;
|
|---|
| 118 | allow 127.0.0.1;
|
|---|
| 119 | deny all;
|
|---|
| 120 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=nginx_status,facility=local5,severity=warn warn;
|
|---|
| 121 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=nginx_status,facility=local6,severity=warn ss_log_format;
|
|---|
| 122 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=nginx_status,facility=local5,severity=warn warn;
|
|---|
| 123 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=nginx_status,facility=local6,severity=warn ss_log_format;
|
|---|
| 124 | }
|
|---|
| 125 | location /metadata/xdomain/ {
|
|---|
| 126 | alias /opt/securisync/be-2.dev/var/www/xdomain/;
|
|---|
| 127 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=crossdomain,facility=local5,severity=warn warn;
|
|---|
| 128 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=crossdomain,facility=local6,severity=warn ss_log_format;
|
|---|
| 129 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=crossdomain,facility=local5,severity=warn warn;
|
|---|
| 130 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=crossdomain,facility=local6,severity=warn ss_log_format;
|
|---|
| 131 |
|
|---|
| 132 | }
|
|---|
| 133 | location /diagnostic-reports/ {
|
|---|
| 134 | satisfy any;
|
|---|
| 135 | auth_basic "INTERMEDIA domain";
|
|---|
| 136 | auth_basic_user_file /opt/securisync/be-active/conf/nginx.htpasswd;
|
|---|
| 137 | auth_request /internal_auth;
|
|---|
| 138 | autoindex on;
|
|---|
| 139 | alias /var/lib/securisync/diagnostic-reports/;
|
|---|
| 140 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=diagnostic,facility=local5,severity=warn warn;
|
|---|
| 141 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=diagnostic,facility=local6,severity=warn ss_log_format;
|
|---|
| 142 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=diagnostic,facility=local5,severity=warn warn;
|
|---|
| 143 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=diagnostic,facility=local6,severity=warn ss_log_format;
|
|---|
| 144 | }
|
|---|
| 145 | location /diagnostic-logs/ {
|
|---|
| 146 | satisfy any;
|
|---|
| 147 | auth_basic "INTERMEDIA domain";
|
|---|
| 148 | auth_basic_user_file /opt/securisync/be-active/conf/nginx.htpasswd;
|
|---|
| 149 | auth_request /internal_auth;
|
|---|
| 150 | autoindex on;
|
|---|
| 151 | alias /var/lib/securisync/diagnostic-logs/;
|
|---|
| 152 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=diagnostic,facility=local5,severity=warn warn;
|
|---|
| 153 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=diagnostic,facility=local6,severity=warn ss_log_format;
|
|---|
| 154 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=diagnostic,facility=local5,severity=warn warn;
|
|---|
| 155 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=diagnostic,facility=local6,severity=warn ss_log_format;
|
|---|
| 156 | }
|
|---|
| 157 | location /favicon.ico {
|
|---|
| 158 | alias /opt/securisync/be-active/var/www/web/content/static/images/favicon.ico;
|
|---|
| 159 |
|
|---|
| 160 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=favicon,facility=local5,severity=warn warn;
|
|---|
| 161 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=favicon,facility=local6,severity=warn ss_log_format;
|
|---|
| 162 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=favicon,facility=local5,severity=warn warn;
|
|---|
| 163 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=favicon,facility=local6,severity=warn ss_log_format;
|
|---|
| 164 | }
|
|---|
| 165 |
|
|---|
| 166 | location /internal_auth {
|
|---|
| 167 | uwsgi_pass internal_auth;
|
|---|
| 168 | include uwsgi_params;
|
|---|
| 169 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=internal_auth,facility=local5,severity=warn warn;
|
|---|
| 170 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=internal_auth,facility=local6,severity=warn ss_log_format;
|
|---|
| 171 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=internal_auth,facility=local5,severity=warn warn;
|
|---|
| 172 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=internal_auth,facility=local6,severity=warn ss_log_format;
|
|---|
| 173 | }
|
|---|
| 174 |
|
|---|
| 175 | rewrite web/login /web/#login permanent;
|
|---|
| 176 | rewrite /web/signup /web/#signup permanent;
|
|---|
| 177 | rewrite ^/web/s/(.+)$ /web/#s/login?public_share=$1 permanent;
|
|---|
| 178 | if ($query_string ~* accesscode=){
|
|---|
| 179 | rewrite /web /web/#/ permanent;
|
|---|
| 180 | }
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 |
|
|---|
| 184 | location ~* ^/(clientaccesspolicy|crossdomain)\.xml$ {
|
|---|
| 185 | etag off;
|
|---|
| 186 | proxy_set_header If-Modified-Since "";
|
|---|
| 187 | proxy_set_header If-None-Match-Since "";
|
|---|
| 188 | add_header Content-Type "text/xml";
|
|---|
| 189 |
|
|---|
| 190 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=crossdomain,facility=local5,severity=warn warn;
|
|---|
| 191 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=crossdomain,facility=local6,severity=warn ss_log_format;
|
|---|
| 192 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=crossdomain,facility=local5,severity=warn warn;
|
|---|
| 193 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=crossdomain,facility=local6,severity=warn ss_log_format;
|
|---|
| 194 | }
|
|---|
| 195 |
|
|---|
| 196 | merge_slashes off;
|
|---|
| 197 | location ~* /rabbitmq/api/(.*)///(.*) {
|
|---|
| 198 | proxy_pass https://rabbitmq/api/$1/%2F/$2;
|
|---|
| 199 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=rabbitmq,facility=local5,severity=warn warn;
|
|---|
| 200 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=rabbitmq,facility=local6,severity=warn ss_log_format;
|
|---|
| 201 |
|
|---|
| 202 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=rabbitmq,facility=local5,severity=warn warn;
|
|---|
| 203 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=rabbitmq,facility=local6,severity=warn ss_log_format;
|
|---|
| 204 |
|
|---|
| 205 | }
|
|---|
| 206 | location /rabbitmq/ {
|
|---|
| 207 | proxy_pass https://rabbitmq/;
|
|---|
| 208 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=rabbitmq,facility=local5,severity=warn warn;
|
|---|
| 209 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=rabbitmq,facility=local6,severity=warn ss_log_format;
|
|---|
| 210 |
|
|---|
| 211 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=rabbitmq,facility=local5,severity=warn warn;
|
|---|
| 212 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=rabbitmq,facility=local6,severity=warn ss_log_format;
|
|---|
| 213 |
|
|---|
| 214 | }
|
|---|
| 215 | location /elastichq/server {
|
|---|
| 216 | satisfy any;
|
|---|
| 217 | auth_basic "INTERMEDIA domain";
|
|---|
| 218 | auth_basic_user_file /opt/securisync/be-active/conf/nginx.htpasswd;
|
|---|
| 219 | auth_request /internal_auth;
|
|---|
| 220 | proxy_pass http://elastichq/;
|
|---|
| 221 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=elastichq,facility=local5,severity=warn warn;
|
|---|
| 222 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=elastichq,facility=local6,severity=warn ss_log_format;
|
|---|
| 223 |
|
|---|
| 224 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=elastichq,facility=local5,severity=warn warn;
|
|---|
| 225 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=elastichq,facility=local6,severity=warn ss_log_format;
|
|---|
| 226 |
|
|---|
| 227 | }
|
|---|
| 228 | location /content {
|
|---|
| 229 | internal;
|
|---|
| 230 | alias /var/lib/securisync;
|
|---|
| 231 | add_header Etag $upstream_http_etag;
|
|---|
| 232 | add_header Last-Modified $upstream_http_last_modified;
|
|---|
| 233 | add_header X-Revision $upstream_http_x_revision;
|
|---|
| 234 | add_header X-Key-ID $upstream_http_x_key_id;
|
|---|
| 235 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=content,facility=local5,severity=warn warn;
|
|---|
| 236 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=content,facility=local6,severity=warn ss_log_format;
|
|---|
| 237 |
|
|---|
| 238 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=content,facility=local5,severity=warn warn;
|
|---|
| 239 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=content,facility=local6,severity=warn ss_log_format;
|
|---|
| 240 |
|
|---|
| 241 | }
|
|---|
| 242 |
|
|---|
| 243 |
|
|---|
| 244 | location /wopi/files {
|
|---|
| 245 | satisfy any;
|
|---|
| 246 | allow all;
|
|---|
| 247 | proxy_pass http://wopi_srv;
|
|---|
| 248 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=wopi,facility=local5,severity=warn warn;
|
|---|
| 249 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=wopi,facility=local6,severity=warn ss_log_format;
|
|---|
| 250 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=wopi,facility=local5,severity=warn warn;
|
|---|
| 251 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=wopi,facility=local6,severity=warn ss_log_format;
|
|---|
| 252 | }
|
|---|
| 253 |
|
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 |
|
|---|
| 258 | location /provisioning {
|
|---|
| 259 | uwsgi_pass provisioning-active;
|
|---|
| 260 | include uwsgi_params;
|
|---|
| 261 | satisfy any;
|
|---|
| 262 | auth_basic "INTERMEDIA domain";
|
|---|
| 263 | auth_basic_user_file /opt/securisync/be-active/conf/nginx.htpasswd;
|
|---|
| 264 | auth_request /internal_auth;
|
|---|
| 265 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=provisioning,facility=local5,severity=warn warn;
|
|---|
| 266 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=provisioning,facility=local6,severity=warn ss_log_format;
|
|---|
| 267 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=provisioning,facility=local5,severity=warn warn;
|
|---|
| 268 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=provisioning,facility=local6,severity=warn ss_log_format;
|
|---|
| 269 | }
|
|---|
| 270 | location /testing {
|
|---|
| 271 | uwsgi_pass testing-active;
|
|---|
| 272 | include uwsgi_params;
|
|---|
| 273 | satisfy any;
|
|---|
| 274 | auth_basic "INTERMEDIA domain";
|
|---|
| 275 | auth_basic_user_file /opt/securisync/be-active/conf/nginx.htpasswd;
|
|---|
| 276 | auth_request /internal_auth;
|
|---|
| 277 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=testing,facility=local5,severity=warn warn;
|
|---|
| 278 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=testing,facility=local6,severity=warn ss_log_format;
|
|---|
| 279 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=testing,facility=local5,severity=warn warn;
|
|---|
| 280 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=testing,facility=local6,severity=warn ss_log_format;
|
|---|
| 281 | }
|
|---|
| 282 | location /internal {
|
|---|
| 283 | uwsgi_pass internal-active;
|
|---|
| 284 | include uwsgi_params;
|
|---|
| 285 | error_log syslog:server=imfmce-va-81-1.filemirror.local,tag=internal,facility=local5,severity=warn warn;
|
|---|
| 286 | access_log syslog:server=imfmce-va-81-1.filemirror.local,tag=internal,facility=local6,severity=warn ss_log_format;
|
|---|
| 287 | error_log syslog:server=imfmce-va-81-2.filemirror.local,tag=internal,facility=local5,severity=warn warn;
|
|---|
| 288 | access_log syslog:server=imfmce-va-81-2.filemirror.local,tag=internal,facility=local6,severity=warn ss_log_format;
|
|---|
| 289 | }
|
|---|
| 290 | }
|
|---|
| 291 | }
|
|---|