Quellcode durchsuchen

\feat: Complete Windows nginx setup with custom domain

- Update nginx configuration for Windows environment
- Change domain from 'marketData' to 'market-price.insightbull.io'
- Fix and improve Windows batch files for service management
- Update all documentation to reflect new domain and setup
- Add comprehensive Windows setup guide in README
- Update MT5 operation guide with new domain configuration
- Improve hosts file management in batch scripts
- Add detailed setup instructions for current working method

Key Changes:
- nginx.conf: Updated server_name to include new domain
- start_proxy.bat: Fixed hosts file entry and curl tests
- stop_proxy.bat: Simplified Node.js stopping logic
- README.md: Added Windows nginx setup guide
- docs/MT5_OPERATION.md: Updated MT5 EA configuration
- All documentation now reflects market-price.insightbull.io domain

This commit establishes a fully functional Windows nginx proxy setup
with proper domain configuration and comprehensive documentation."
uzairrizwan1 vor 3 Monaten
Ursprung
Commit
b572a85997

+ 78 - 3
README.md

@@ -120,7 +120,7 @@ UNIQUE (symbol_id, open_time);
120 120
 Joi.number().precision(15)
121 121
 ```
122 122
 
123
-## Installation  
123
+## Installation
124 124
 
125 125
 1. **Clone the repository**
126 126
    ```bash
@@ -148,12 +148,87 @@ Joi.number().precision(15)
148 148
    npx sequelize-cli db:migrate
149 149
    ```
150 150
 
151
-5. **Start the development server**
151
+5. **Start the services**
152
+
153
+   ### Windows Setup (with Nginx Proxy) ✅ **RECOMMENDED**
154
+   ```bash
155
+   # Method 1: Manual (as you're currently doing)
156
+   # Terminal 1: Start Node.js server
157
+   node src/server.js
158
+
159
+   # Terminal 2: Start Nginx proxy (run as administrator)
160
+   powershell -ExecutionPolicy Bypass -Command "cd nginx-1.24.0; .\nginx.exe"
161
+   # OR: Right-click nginx.exe → "Run as administrator"
162
+
163
+   # Method 2: Use batch files (alternative)
164
+   # Right-click and "Run as administrator":
165
+   start_proxy.bat
166
+   ```
167
+
168
+   ### Linux/Mac Setup
152 169
    ```bash
170
+   # Start development server
153 171
    npm run dev
154 172
    ```
155 173
 
156
-The server will start on `http://localhost:3000`
174
+The server will start on `http://localhost:3001` and proxy through Nginx on `http://market-price.insightbull.io`
175
+
176
+## Windows Nginx Setup Guide ✅ **YOUR CURRENT METHOD**
177
+
178
+### Quick Start (Your Working Setup)
179
+1. **Start Node.js server**:
180
+   ```bash
181
+   node src/server.js
182
+   ```
183
+
184
+2. **Start Nginx proxy** (run as administrator):
185
+   ```bash
186
+   powershell -ExecutionPolicy Bypass -Command "cd nginx-1.24.0; .\nginx.exe"
187
+   # OR: Right-click nginx.exe → "Run as administrator"
188
+   ```
189
+
190
+3. **Configure MT5 EA**:
191
+   - Set `ApiBaseUrl = "http://market-price.insightbull.io"`
192
+   - Use the nginx proxy URL for better performance
193
+
194
+4. **Stop services**:
195
+   ```bash
196
+   # Stop Nginx
197
+   taskkill /f /im nginx.exe
198
+
199
+   # Stop Node.js
200
+   taskkill /f /im node.exe
201
+   ```
202
+
203
+### Alternative: Batch Files
204
+If you prefer using batch files:
205
+- **`start_proxy.bat`**: Start both services (run as administrator)
206
+- **`stop_proxy.bat`**: Stop both services
207
+
208
+## Windows Batch Files
209
+
210
+The project includes batch files for easy Windows setup:
211
+
212
+### `start_proxy.bat`
213
+- **Purpose**: Starts both Node.js server and Nginx proxy
214
+- **Usage**: Right-click → "Run as administrator"
215
+- **What it does**:
216
+  - Adds `market-price.insightbull.io` to hosts file
217
+  - Starts Node.js server on port 3001
218
+  - Starts Nginx proxy on ports 80/8080
219
+  - Tests connectivity
220
+
221
+### `stop_proxy.bat`
222
+- **Purpose**: Stops both Node.js server and Nginx proxy
223
+- **Usage**: Double-click or run in terminal
224
+- **What it does**:
225
+  - Stops Nginx processes
226
+  - Stops Node.js processes
227
+  - Frees up ports
228
+
229
+### `start_nginx.ps1`
230
+- **Purpose**: PowerShell script to start Nginx only
231
+- **Usage**: `powershell -ExecutionPolicy Bypass -File start_nginx.ps1`
157 232
 
158 233
 ## Environment Variables
159 234
 

+ 43 - 2
docs/MT5_OPERATION.md

@@ -7,10 +7,51 @@ input int    MaxRetries = 3;       // Number of send attempts
7 7
 input int    InitialDelayMs = 1000; // First retry delay (milliseconds)
8 8
 
9 9
 // API SETTINGS
10
-input string ApiBaseUrl = "http://localhost:3000";
11
-input string ApiKey = ""; 
10
+input string ApiBaseUrl = "http://market-price.insightbull.io";
11
+input string ApiKey = "";
12 12
 ```
13 13
 
14
+## Windows Setup with Nginx Proxy ✅ **RECOMMENDED**
15
+
16
+### Your Current Working Setup
17
+1. **Start Node.js server**:
18
+   ```bash
19
+   node src/server.js
20
+   ```
21
+
22
+2. **Start Nginx proxy** (run as administrator):
23
+   ```bash
24
+   powershell -ExecutionPolicy Bypass -Command "cd nginx-1.24.0; .\nginx.exe"
25
+   # OR: Right-click nginx.exe → "Run as administrator"
26
+   ```
27
+
28
+3. **Configure MT5 EA**:
29
+   - `ApiBaseUrl`: Use `http://market-price.insightbull.io` (nginx proxy)
30
+   - This provides better performance and reliability
31
+
32
+4. **Stop services**:
33
+   ```bash
34
+   # Stop Nginx
35
+   taskkill /f /im nginx.exe
36
+
37
+   # Stop Node.js (Ctrl+C in terminal or)
38
+   taskkill /f /im node.exe
39
+   ```
40
+
41
+### Alternative Using Batch Files
42
+```bash
43
+# Start everything (run as administrator)
44
+start_proxy.bat
45
+
46
+# Stop everything
47
+stop_proxy.bat
48
+```
49
+
50
+### Direct Connection (without Nginx)
51
+If not using Nginx proxy:
52
+- `ApiBaseUrl`: Use `http://localhost:3001`
53
+- `ApiBaseUrl`: Use `http://127.0.0.1:3001`
54
+
14 55
 ## Failure Recovery Behavior
15 56
 1. **Retry Sequence**  
16 57
    - Attempt 1: Immediate send  

+ 26 - 0
nginx-1.24.0/conf/fastcgi.conf

@@ -0,0 +1,26 @@
1
+
2
+fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
3
+fastcgi_param  QUERY_STRING       $query_string;
4
+fastcgi_param  REQUEST_METHOD     $request_method;
5
+fastcgi_param  CONTENT_TYPE       $content_type;
6
+fastcgi_param  CONTENT_LENGTH     $content_length;
7
+
8
+fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
9
+fastcgi_param  REQUEST_URI        $request_uri;
10
+fastcgi_param  DOCUMENT_URI       $document_uri;
11
+fastcgi_param  DOCUMENT_ROOT      $document_root;
12
+fastcgi_param  SERVER_PROTOCOL    $server_protocol;
13
+fastcgi_param  REQUEST_SCHEME     $scheme;
14
+fastcgi_param  HTTPS              $https if_not_empty;
15
+
16
+fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
17
+fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
18
+
19
+fastcgi_param  REMOTE_ADDR        $remote_addr;
20
+fastcgi_param  REMOTE_PORT        $remote_port;
21
+fastcgi_param  SERVER_ADDR        $server_addr;
22
+fastcgi_param  SERVER_PORT        $server_port;
23
+fastcgi_param  SERVER_NAME        $server_name;
24
+
25
+# PHP only, required if PHP was built with --enable-force-cgi-redirect
26
+fastcgi_param  REDIRECT_STATUS    200;

+ 25 - 0
nginx-1.24.0/conf/fastcgi_params

@@ -0,0 +1,25 @@
1
+
2
+fastcgi_param  QUERY_STRING       $query_string;
3
+fastcgi_param  REQUEST_METHOD     $request_method;
4
+fastcgi_param  CONTENT_TYPE       $content_type;
5
+fastcgi_param  CONTENT_LENGTH     $content_length;
6
+
7
+fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
8
+fastcgi_param  REQUEST_URI        $request_uri;
9
+fastcgi_param  DOCUMENT_URI       $document_uri;
10
+fastcgi_param  DOCUMENT_ROOT      $document_root;
11
+fastcgi_param  SERVER_PROTOCOL    $server_protocol;
12
+fastcgi_param  REQUEST_SCHEME     $scheme;
13
+fastcgi_param  HTTPS              $https if_not_empty;
14
+
15
+fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
16
+fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
17
+
18
+fastcgi_param  REMOTE_ADDR        $remote_addr;
19
+fastcgi_param  REMOTE_PORT        $remote_port;
20
+fastcgi_param  SERVER_ADDR        $server_addr;
21
+fastcgi_param  SERVER_PORT        $server_port;
22
+fastcgi_param  SERVER_NAME        $server_name;
23
+
24
+# PHP only, required if PHP was built with --enable-force-cgi-redirect
25
+fastcgi_param  REDIRECT_STATUS    200;

+ 109 - 0
nginx-1.24.0/conf/koi-utf

@@ -0,0 +1,109 @@
1
+
2
+# This map is not a full koi8-r <> utf8 map: it does not contain
3
+# box-drawing and some other characters.  Besides this map contains
4
+# several koi8-u and Byelorussian letters which are not in koi8-r.
5
+# If you need a full and standard map, use contrib/unicode2nginx/koi-utf
6
+# map instead.
7
+
8
+charset_map  koi8-r  utf-8 {
9
+
10
+    80  E282AC ; # euro
11
+
12
+    95  E280A2 ; # bullet
13
+
14
+    9A  C2A0 ;   # &nbsp;
15
+
16
+    9E  C2B7 ;   # &middot;
17
+
18
+    A3  D191 ;   # small yo
19
+    A4  D194 ;   # small Ukrainian ye
20
+
21
+    A6  D196 ;   # small Ukrainian i
22
+    A7  D197 ;   # small Ukrainian yi
23
+
24
+    AD  D291 ;   # small Ukrainian soft g
25
+    AE  D19E ;   # small Byelorussian short u
26
+
27
+    B0  C2B0 ;   # &deg;
28
+
29
+    B3  D081 ;   # capital YO
30
+    B4  D084 ;   # capital Ukrainian YE
31
+
32
+    B6  D086 ;   # capital Ukrainian I
33
+    B7  D087 ;   # capital Ukrainian YI
34
+
35
+    B9  E28496 ; # numero sign
36
+
37
+    BD  D290 ;   # capital Ukrainian soft G
38
+    BE  D18E ;   # capital Byelorussian short U
39
+
40
+    BF  C2A9 ;   # (C)
41
+
42
+    C0  D18E ;   # small yu
43
+    C1  D0B0 ;   # small a
44
+    C2  D0B1 ;   # small b
45
+    C3  D186 ;   # small ts
46
+    C4  D0B4 ;   # small d
47
+    C5  D0B5 ;   # small ye
48
+    C6  D184 ;   # small f
49
+    C7  D0B3 ;   # small g
50
+    C8  D185 ;   # small kh
51
+    C9  D0B8 ;   # small i
52
+    CA  D0B9 ;   # small j
53
+    CB  D0BA ;   # small k
54
+    CC  D0BB ;   # small l
55
+    CD  D0BC ;   # small m
56
+    CE  D0BD ;   # small n
57
+    CF  D0BE ;   # small o
58
+
59
+    D0  D0BF ;   # small p
60
+    D1  D18F ;   # small ya
61
+    D2  D180 ;   # small r
62
+    D3  D181 ;   # small s
63
+    D4  D182 ;   # small t
64
+    D5  D183 ;   # small u
65
+    D6  D0B6 ;   # small zh
66
+    D7  D0B2 ;   # small v
67
+    D8  D18C ;   # small soft sign
68
+    D9  D18B ;   # small y
69
+    DA  D0B7 ;   # small z
70
+    DB  D188 ;   # small sh
71
+    DC  D18D ;   # small e
72
+    DD  D189 ;   # small shch
73
+    DE  D187 ;   # small ch
74
+    DF  D18A ;   # small hard sign
75
+
76
+    E0  D0AE ;   # capital YU
77
+    E1  D090 ;   # capital A
78
+    E2  D091 ;   # capital B
79
+    E3  D0A6 ;   # capital TS
80
+    E4  D094 ;   # capital D
81
+    E5  D095 ;   # capital YE
82
+    E6  D0A4 ;   # capital F
83
+    E7  D093 ;   # capital G
84
+    E8  D0A5 ;   # capital KH
85
+    E9  D098 ;   # capital I
86
+    EA  D099 ;   # capital J
87
+    EB  D09A ;   # capital K
88
+    EC  D09B ;   # capital L
89
+    ED  D09C ;   # capital M
90
+    EE  D09D ;   # capital N
91
+    EF  D09E ;   # capital O
92
+
93
+    F0  D09F ;   # capital P
94
+    F1  D0AF ;   # capital YA
95
+    F2  D0A0 ;   # capital R
96
+    F3  D0A1 ;   # capital S
97
+    F4  D0A2 ;   # capital T
98
+    F5  D0A3 ;   # capital U
99
+    F6  D096 ;   # capital ZH
100
+    F7  D092 ;   # capital V
101
+    F8  D0AC ;   # capital soft sign
102
+    F9  D0AB ;   # capital Y
103
+    FA  D097 ;   # capital Z
104
+    FB  D0A8 ;   # capital SH
105
+    FC  D0AD ;   # capital E
106
+    FD  D0A9 ;   # capital SHCH
107
+    FE  D0A7 ;   # capital CH
108
+    FF  D0AA ;   # capital hard sign
109
+}

+ 103 - 0
nginx-1.24.0/conf/koi-win

@@ -0,0 +1,103 @@
1
+
2
+charset_map  koi8-r  windows-1251 {
3
+
4
+    80  88 ; # euro
5
+
6
+    95  95 ; # bullet
7
+
8
+    9A  A0 ; # &nbsp;
9
+
10
+    9E  B7 ; # &middot;
11
+
12
+    A3  B8 ; # small yo
13
+    A4  BA ; # small Ukrainian ye
14
+
15
+    A6  B3 ; # small Ukrainian i
16
+    A7  BF ; # small Ukrainian yi
17
+
18
+    AD  B4 ; # small Ukrainian soft g
19
+    AE  A2 ; # small Byelorussian short u
20
+
21
+    B0  B0 ; # &deg;
22
+
23
+    B3  A8 ; # capital YO
24
+    B4  AA ; # capital Ukrainian YE
25
+
26
+    B6  B2 ; # capital Ukrainian I
27
+    B7  AF ; # capital Ukrainian YI
28
+
29
+    B9  B9 ; # numero sign
30
+
31
+    BD  A5 ; # capital Ukrainian soft G
32
+    BE  A1 ; # capital Byelorussian short U
33
+
34
+    BF  A9 ; # (C)
35
+
36
+    C0  FE ; # small yu
37
+    C1  E0 ; # small a
38
+    C2  E1 ; # small b
39
+    C3  F6 ; # small ts
40
+    C4  E4 ; # small d
41
+    C5  E5 ; # small ye
42
+    C6  F4 ; # small f
43
+    C7  E3 ; # small g
44
+    C8  F5 ; # small kh
45
+    C9  E8 ; # small i
46
+    CA  E9 ; # small j
47
+    CB  EA ; # small k
48
+    CC  EB ; # small l
49
+    CD  EC ; # small m
50
+    CE  ED ; # small n
51
+    CF  EE ; # small o
52
+
53
+    D0  EF ; # small p
54
+    D1  FF ; # small ya
55
+    D2  F0 ; # small r
56
+    D3  F1 ; # small s
57
+    D4  F2 ; # small t
58
+    D5  F3 ; # small u
59
+    D6  E6 ; # small zh
60
+    D7  E2 ; # small v
61
+    D8  FC ; # small soft sign
62
+    D9  FB ; # small y
63
+    DA  E7 ; # small z
64
+    DB  F8 ; # small sh
65
+    DC  FD ; # small e
66
+    DD  F9 ; # small shch
67
+    DE  F7 ; # small ch
68
+    DF  FA ; # small hard sign
69
+
70
+    E0  DE ; # capital YU
71
+    E1  C0 ; # capital A
72
+    E2  C1 ; # capital B
73
+    E3  D6 ; # capital TS
74
+    E4  C4 ; # capital D
75
+    E5  C5 ; # capital YE
76
+    E6  D4 ; # capital F
77
+    E7  C3 ; # capital G
78
+    E8  D5 ; # capital KH
79
+    E9  C8 ; # capital I
80
+    EA  C9 ; # capital J
81
+    EB  CA ; # capital K
82
+    EC  CB ; # capital L
83
+    ED  CC ; # capital M
84
+    EE  CD ; # capital N
85
+    EF  CE ; # capital O
86
+
87
+    F0  CF ; # capital P
88
+    F1  DF ; # capital YA
89
+    F2  D0 ; # capital R
90
+    F3  D1 ; # capital S
91
+    F4  D2 ; # capital T
92
+    F5  D3 ; # capital U
93
+    F6  C6 ; # capital ZH
94
+    F7  C2 ; # capital V
95
+    F8  DC ; # capital soft sign
96
+    F9  DB ; # capital Y
97
+    FA  C7 ; # capital Z
98
+    FB  D8 ; # capital SH
99
+    FC  DD ; # capital E
100
+    FD  D9 ; # capital SHCH
101
+    FE  D7 ; # capital CH
102
+    FF  DA ; # capital hard sign
103
+}

+ 99 - 0
nginx-1.24.0/conf/mime.types

@@ -0,0 +1,99 @@
1
+
2
+types {
3
+    text/html                                        html htm shtml;
4
+    text/css                                         css;
5
+    text/xml                                         xml;
6
+    image/gif                                        gif;
7
+    image/jpeg                                       jpeg jpg;
8
+    application/javascript                           js;
9
+    application/atom+xml                             atom;
10
+    application/rss+xml                              rss;
11
+
12
+    text/mathml                                      mml;
13
+    text/plain                                       txt;
14
+    text/vnd.sun.j2me.app-descriptor                 jad;
15
+    text/vnd.wap.wml                                 wml;
16
+    text/x-component                                 htc;
17
+
18
+    image/avif                                       avif;
19
+    image/png                                        png;
20
+    image/svg+xml                                    svg svgz;
21
+    image/tiff                                       tif tiff;
22
+    image/vnd.wap.wbmp                               wbmp;
23
+    image/webp                                       webp;
24
+    image/x-icon                                     ico;
25
+    image/x-jng                                      jng;
26
+    image/x-ms-bmp                                   bmp;
27
+
28
+    font/woff                                        woff;
29
+    font/woff2                                       woff2;
30
+
31
+    application/java-archive                         jar war ear;
32
+    application/json                                 json;
33
+    application/mac-binhex40                         hqx;
34
+    application/msword                               doc;
35
+    application/pdf                                  pdf;
36
+    application/postscript                           ps eps ai;
37
+    application/rtf                                  rtf;
38
+    application/vnd.apple.mpegurl                    m3u8;
39
+    application/vnd.google-earth.kml+xml             kml;
40
+    application/vnd.google-earth.kmz                 kmz;
41
+    application/vnd.ms-excel                         xls;
42
+    application/vnd.ms-fontobject                    eot;
43
+    application/vnd.ms-powerpoint                    ppt;
44
+    application/vnd.oasis.opendocument.graphics      odg;
45
+    application/vnd.oasis.opendocument.presentation  odp;
46
+    application/vnd.oasis.opendocument.spreadsheet   ods;
47
+    application/vnd.oasis.opendocument.text          odt;
48
+    application/vnd.openxmlformats-officedocument.presentationml.presentation
49
+                                                     pptx;
50
+    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
51
+                                                     xlsx;
52
+    application/vnd.openxmlformats-officedocument.wordprocessingml.document
53
+                                                     docx;
54
+    application/vnd.wap.wmlc                         wmlc;
55
+    application/wasm                                 wasm;
56
+    application/x-7z-compressed                      7z;
57
+    application/x-cocoa                              cco;
58
+    application/x-java-archive-diff                  jardiff;
59
+    application/x-java-jnlp-file                     jnlp;
60
+    application/x-makeself                           run;
61
+    application/x-perl                               pl pm;
62
+    application/x-pilot                              prc pdb;
63
+    application/x-rar-compressed                     rar;
64
+    application/x-redhat-package-manager             rpm;
65
+    application/x-sea                                sea;
66
+    application/x-shockwave-flash                    swf;
67
+    application/x-stuffit                            sit;
68
+    application/x-tcl                                tcl tk;
69
+    application/x-x509-ca-cert                       der pem crt;
70
+    application/x-xpinstall                          xpi;
71
+    application/xhtml+xml                            xhtml;
72
+    application/xspf+xml                             xspf;
73
+    application/zip                                  zip;
74
+
75
+    application/octet-stream                         bin exe dll;
76
+    application/octet-stream                         deb;
77
+    application/octet-stream                         dmg;
78
+    application/octet-stream                         iso img;
79
+    application/octet-stream                         msi msp msm;
80
+
81
+    audio/midi                                       mid midi kar;
82
+    audio/mpeg                                       mp3;
83
+    audio/ogg                                        ogg;
84
+    audio/x-m4a                                      m4a;
85
+    audio/x-realaudio                                ra;
86
+
87
+    video/3gpp                                       3gpp 3gp;
88
+    video/mp2t                                       ts;
89
+    video/mp4                                        mp4;
90
+    video/mpeg                                       mpeg mpg;
91
+    video/quicktime                                  mov;
92
+    video/webm                                       webm;
93
+    video/x-flv                                      flv;
94
+    video/x-m4v                                      m4v;
95
+    video/x-mng                                      mng;
96
+    video/x-ms-asf                                   asx asf;
97
+    video/x-ms-wmv                                   wmv;
98
+    video/x-msvideo                                  avi;
99
+}

+ 5 - 8
nginx-1.24.0/conf/nginx.conf

@@ -1,3 +1,4 @@
1
+
1 2
 events {
2 3
     worker_connections 1024;
3 4
 }
@@ -45,10 +46,11 @@ http {
45 46
         keepalive 32;
46 47
     }
47 48
 
48
-    # HTTP server block for port 80
49
+    # HTTP server block for port 8080 (testing) and port 80 (production)
49 50
     server {
51
+        listen       8080;
50 52
         listen       80;
51
-        server_name  marketData;
53
+        server_name  localhost market-price.insightbull.io 127.0.0.1;
52 54
 
53 55
         # Security headers
54 56
         add_header X-Frame-Options DENY;
@@ -61,7 +63,7 @@ http {
61 63
             limit_req zone=api burst=20 nodelay;
62 64
 
63 65
             # Proxy to Node.js server
64
-            proxy_pass http://market_data_api/;
66
+            proxy_pass http://market_data_api;
65 67
             proxy_http_version 1.1;
66 68
             proxy_set_header Upgrade $http_upgrade;
67 69
             proxy_set_header Connection 'upgrade';
@@ -82,11 +84,6 @@ http {
82 84
             proxy_buffers 8 4k;
83 85
             proxy_busy_buffers_size 8k;
84 86
             client_max_body_size 50M;
85
-
86
-            # Enable all HTTP methods
87
-            if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
88
-                return 405;
89
-            }
90 87
         }
91 88
 
92 89
         # Health check endpoint (optional)

+ 17 - 0
nginx-1.24.0/conf/scgi_params

@@ -0,0 +1,17 @@
1
+
2
+scgi_param  REQUEST_METHOD     $request_method;
3
+scgi_param  REQUEST_URI        $request_uri;
4
+scgi_param  QUERY_STRING       $query_string;
5
+scgi_param  CONTENT_TYPE       $content_type;
6
+
7
+scgi_param  DOCUMENT_URI       $document_uri;
8
+scgi_param  DOCUMENT_ROOT      $document_root;
9
+scgi_param  SCGI               1;
10
+scgi_param  SERVER_PROTOCOL    $server_protocol;
11
+scgi_param  REQUEST_SCHEME     $scheme;
12
+scgi_param  HTTPS              $https if_not_empty;
13
+
14
+scgi_param  REMOTE_ADDR        $remote_addr;
15
+scgi_param  REMOTE_PORT        $remote_port;
16
+scgi_param  SERVER_PORT        $server_port;
17
+scgi_param  SERVER_NAME        $server_name;

+ 17 - 0
nginx-1.24.0/conf/uwsgi_params

@@ -0,0 +1,17 @@
1
+
2
+uwsgi_param  QUERY_STRING       $query_string;
3
+uwsgi_param  REQUEST_METHOD     $request_method;
4
+uwsgi_param  CONTENT_TYPE       $content_type;
5
+uwsgi_param  CONTENT_LENGTH     $content_length;
6
+
7
+uwsgi_param  REQUEST_URI        $request_uri;
8
+uwsgi_param  PATH_INFO          $document_uri;
9
+uwsgi_param  DOCUMENT_ROOT      $document_root;
10
+uwsgi_param  SERVER_PROTOCOL    $server_protocol;
11
+uwsgi_param  REQUEST_SCHEME     $scheme;
12
+uwsgi_param  HTTPS              $https if_not_empty;
13
+
14
+uwsgi_param  REMOTE_ADDR        $remote_addr;
15
+uwsgi_param  REMOTE_PORT        $remote_port;
16
+uwsgi_param  SERVER_PORT        $server_port;
17
+uwsgi_param  SERVER_NAME        $server_name;

+ 126 - 0
nginx-1.24.0/conf/win-utf

@@ -0,0 +1,126 @@
1
+
2
+# This map is not a full windows-1251 <> utf8 map: it does not
3
+# contain Serbian and Macedonian letters.  If you need a full map,
4
+# use contrib/unicode2nginx/win-utf map instead.
5
+
6
+charset_map  windows-1251  utf-8 {
7
+
8
+    82  E2809A ; # single low-9 quotation mark
9
+
10
+    84  E2809E ; # double low-9 quotation mark
11
+    85  E280A6 ; # ellipsis
12
+    86  E280A0 ; # dagger
13
+    87  E280A1 ; # double dagger
14
+    88  E282AC ; # euro
15
+    89  E280B0 ; # per mille
16
+
17
+    91  E28098 ; # left single quotation mark
18
+    92  E28099 ; # right single quotation mark
19
+    93  E2809C ; # left double quotation mark
20
+    94  E2809D ; # right double quotation mark
21
+    95  E280A2 ; # bullet
22
+    96  E28093 ; # en dash
23
+    97  E28094 ; # em dash
24
+
25
+    99  E284A2 ; # trade mark sign
26
+
27
+    A0  C2A0 ;   # &nbsp;
28
+    A1  D18E ;   # capital Byelorussian short U
29
+    A2  D19E ;   # small Byelorussian short u
30
+
31
+    A4  C2A4 ;   # currency sign
32
+    A5  D290 ;   # capital Ukrainian soft G
33
+    A6  C2A6 ;   # borken bar
34
+    A7  C2A7 ;   # section sign
35
+    A8  D081 ;   # capital YO
36
+    A9  C2A9 ;   # (C)
37
+    AA  D084 ;   # capital Ukrainian YE
38
+    AB  C2AB ;   # left-pointing double angle quotation mark
39
+    AC  C2AC ;   # not sign
40
+    AD  C2AD ;   # soft hypen
41
+    AE  C2AE ;   # (R)
42
+    AF  D087 ;   # capital Ukrainian YI
43
+
44
+    B0  C2B0 ;   # &deg;
45
+    B1  C2B1 ;   # plus-minus sign
46
+    B2  D086 ;   # capital Ukrainian I
47
+    B3  D196 ;   # small Ukrainian i
48
+    B4  D291 ;   # small Ukrainian soft g
49
+    B5  C2B5 ;   # micro sign
50
+    B6  C2B6 ;   # pilcrow sign
51
+    B7  C2B7 ;   # &middot;
52
+    B8  D191 ;   # small yo
53
+    B9  E28496 ; # numero sign
54
+    BA  D194 ;   # small Ukrainian ye
55
+    BB  C2BB ;   # right-pointing double angle quotation mark
56
+
57
+    BF  D197 ;   # small Ukrainian yi
58
+
59
+    C0  D090 ;   # capital A
60
+    C1  D091 ;   # capital B
61
+    C2  D092 ;   # capital V
62
+    C3  D093 ;   # capital G
63
+    C4  D094 ;   # capital D
64
+    C5  D095 ;   # capital YE
65
+    C6  D096 ;   # capital ZH
66
+    C7  D097 ;   # capital Z
67
+    C8  D098 ;   # capital I
68
+    C9  D099 ;   # capital J
69
+    CA  D09A ;   # capital K
70
+    CB  D09B ;   # capital L
71
+    CC  D09C ;   # capital M
72
+    CD  D09D ;   # capital N
73
+    CE  D09E ;   # capital O
74
+    CF  D09F ;   # capital P
75
+
76
+    D0  D0A0 ;   # capital R
77
+    D1  D0A1 ;   # capital S
78
+    D2  D0A2 ;   # capital T
79
+    D3  D0A3 ;   # capital U
80
+    D4  D0A4 ;   # capital F
81
+    D5  D0A5 ;   # capital KH
82
+    D6  D0A6 ;   # capital TS
83
+    D7  D0A7 ;   # capital CH
84
+    D8  D0A8 ;   # capital SH
85
+    D9  D0A9 ;   # capital SHCH
86
+    DA  D0AA ;   # capital hard sign
87
+    DB  D0AB ;   # capital Y
88
+    DC  D0AC ;   # capital soft sign
89
+    DD  D0AD ;   # capital E
90
+    DE  D0AE ;   # capital YU
91
+    DF  D0AF ;   # capital YA
92
+
93
+    E0  D0B0 ;   # small a
94
+    E1  D0B1 ;   # small b
95
+    E2  D0B2 ;   # small v
96
+    E3  D0B3 ;   # small g
97
+    E4  D0B4 ;   # small d
98
+    E5  D0B5 ;   # small ye
99
+    E6  D0B6 ;   # small zh
100
+    E7  D0B7 ;   # small z
101
+    E8  D0B8 ;   # small i
102
+    E9  D0B9 ;   # small j
103
+    EA  D0BA ;   # small k
104
+    EB  D0BB ;   # small l
105
+    EC  D0BC ;   # small m
106
+    ED  D0BD ;   # small n
107
+    EE  D0BE ;   # small o
108
+    EF  D0BF ;   # small p
109
+
110
+    F0  D180 ;   # small r
111
+    F1  D181 ;   # small s
112
+    F2  D182 ;   # small t
113
+    F3  D183 ;   # small u
114
+    F4  D184 ;   # small f
115
+    F5  D185 ;   # small kh
116
+    F6  D186 ;   # small ts
117
+    F7  D187 ;   # small ch
118
+    F8  D188 ;   # small sh
119
+    F9  D189 ;   # small shch
120
+    FA  D18A ;   # small hard sign
121
+    FB  D18B ;   # small y
122
+    FC  D18C ;   # small soft sign
123
+    FD  D18D ;   # small e
124
+    FE  D18E ;   # small yu
125
+    FF  D18F ;   # small ya
126
+}

+ 21 - 0
nginx-1.24.0/contrib/README

@@ -0,0 +1,21 @@
1
+
2
+geo2nginx.pl 		by Andrei Nigmatulin
3
+
4
+	The perl script to convert CSV geoip database ( free download
5
+	at http://www.maxmind.com/app/geoip_country ) to format, suitable
6
+	for use by the ngx_http_geo_module.
7
+
8
+
9
+unicode2nginx		by Maxim Dounin
10
+
11
+	The perl script to convert unicode mappings ( available
12
+	at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx
13
+	configuration file format.
14
+	Two generated full maps for windows-1251 and koi8-r.
15
+
16
+
17
+vim			by Evan Miller
18
+
19
+	Syntax highlighting of nginx configuration for vim, to be
20
+	placed into ~/.vim/.
21
+

+ 58 - 0
nginx-1.24.0/contrib/geo2nginx.pl

@@ -0,0 +1,58 @@
1
+#!/usr/bin/perl -w
2
+
3
+# (c) Andrei Nigmatulin, 2005
4
+#
5
+# this script provided "as is", without any warranties. use it at your own risk.
6
+#
7
+# special thanx to Andrew Sitnikov for perl port
8
+#
9
+# this script converts CSV geoip database (free download at http://www.maxmind.com/app/geoip_country)
10
+# to format, suitable for use with nginx_http_geo module (http://sysoev.ru/nginx)
11
+#
12
+# for example, line with ip range
13
+#
14
+#   "62.16.68.0","62.16.127.255","1041253376","1041268735","RU","Russian Federation"
15
+#
16
+# will be converted to four subnetworks:
17
+#
18
+#   62.16.68.0/22 RU;
19
+#   62.16.72.0/21 RU;
20
+#   62.16.80.0/20 RU;
21
+#   62.16.96.0/19 RU;
22
+
23
+
24
+use warnings;
25
+use strict;
26
+
27
+while( <STDIN> ){
28
+	if (/"[^"]+","[^"]+","([^"]+)","([^"]+)","([^"]+)"/){
29
+		print_subnets($1, $2, $3);
30
+	}
31
+}
32
+
33
+sub  print_subnets {
34
+	my ($a1, $a2, $c) = @_;
35
+	my $l;
36
+    while ($a1 <= $a2) {
37
+		for ($l = 0; ($a1 & (1 << $l)) == 0 && ($a1 + ((1 << ($l + 1)) - 1)) <= $a2; $l++){};
38
+		print long2ip($a1) . "/" . (32 - $l) . " " . $c . ";\n";
39
+    	$a1 += (1 << $l);
40
+	}
41
+}
42
+
43
+sub long2ip {
44
+	my $ip = shift;
45
+
46
+	my $str = 0;
47
+
48
+	$str = ($ip & 255);
49
+
50
+	$ip >>= 8;
51
+	$str = ($ip & 255).".$str";
52
+
53
+	$ip >>= 8;
54
+	$str = ($ip & 255).".$str";
55
+
56
+	$ip >>= 8;
57
+	$str = ($ip & 255).".$str";
58
+}

+ 131 - 0
nginx-1.24.0/contrib/unicode2nginx/koi-utf

@@ -0,0 +1,131 @@
1
+charset_map  koi8-r  utf-8 {
2
+
3
+    80  E29480 ; #	BOX DRAWINGS LIGHT HORIZONTAL
4
+    81  E29482 ; #	BOX DRAWINGS LIGHT VERTICAL
5
+    82  E2948C ; #	BOX DRAWINGS LIGHT DOWN AND RIGHT
6
+    83  E29490 ; #	BOX DRAWINGS LIGHT DOWN AND LEFT
7
+    84  E29494 ; #	BOX DRAWINGS LIGHT UP AND RIGHT
8
+    85  E29498 ; #	BOX DRAWINGS LIGHT UP AND LEFT
9
+    86  E2949C ; #	BOX DRAWINGS LIGHT VERTICAL AND RIGHT
10
+    87  E294A4 ; #	BOX DRAWINGS LIGHT VERTICAL AND LEFT
11
+    88  E294AC ; #	BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
12
+    89  E294B4 ; #	BOX DRAWINGS LIGHT UP AND HORIZONTAL
13
+    8A  E294BC ; #	BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
14
+    8B  E29680 ; #	UPPER HALF BLOCK
15
+    8C  E29684 ; #	LOWER HALF BLOCK
16
+    8D  E29688 ; #	FULL BLOCK
17
+    8E  E2968C ; #	LEFT HALF BLOCK
18
+    8F  E29690 ; #	RIGHT HALF BLOCK
19
+    90  E29691 ; #	LIGHT SHADE
20
+    91  E29692 ; #	MEDIUM SHADE
21
+    92  E29693 ; #	DARK SHADE
22
+    93  E28CA0 ; #	TOP HALF INTEGRAL
23
+    94  E296A0 ; #	BLACK SQUARE
24
+    95  E28899 ; #	BULLET OPERATOR
25
+    96  E2889A ; #	SQUARE ROOT
26
+    97  E28988 ; #	ALMOST EQUAL TO
27
+    98  E289A4 ; #	LESS-THAN OR EQUAL TO
28
+    99  E289A5 ; #	GREATER-THAN OR EQUAL TO
29
+    9A  C2A0 ; #	NO-BREAK SPACE
30
+    9B  E28CA1 ; #	BOTTOM HALF INTEGRAL
31
+    9C  C2B0 ; #	DEGREE SIGN
32
+    9D  C2B2 ; #	SUPERSCRIPT TWO
33
+    9E  C2B7 ; #	MIDDLE DOT
34
+    9F  C3B7 ; #	DIVISION SIGN
35
+    A0  E29590 ; #	BOX DRAWINGS DOUBLE HORIZONTAL
36
+    A1  E29591 ; #	BOX DRAWINGS DOUBLE VERTICAL
37
+    A2  E29592 ; #	BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
38
+    A3  D191 ; #	CYRILLIC SMALL LETTER IO
39
+    A4  E29593 ; #	BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
40
+    A5  E29594 ; #	BOX DRAWINGS DOUBLE DOWN AND RIGHT
41
+    A6  E29595 ; #	BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
42
+    A7  E29596 ; #	BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
43
+    A8  E29597 ; #	BOX DRAWINGS DOUBLE DOWN AND LEFT
44
+    A9  E29598 ; #	BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
45
+    AA  E29599 ; #	BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
46
+    AB  E2959A ; #	BOX DRAWINGS DOUBLE UP AND RIGHT
47
+    AC  E2959B ; #	BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
48
+    AD  E2959C ; #	BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
49
+    AE  E2959D ; #	BOX DRAWINGS DOUBLE UP AND LEFT
50
+    AF  E2959E ; #	BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
51
+    B0  E2959F ; #	BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
52
+    B1  E295A0 ; #	BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
53
+    B2  E295A1 ; #	BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
54
+    B3  D081 ; #	CYRILLIC CAPITAL LETTER IO
55
+    B4  E295A2 ; #	BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
56
+    B5  E295A3 ; #	BOX DRAWINGS DOUBLE VERTICAL AND LEFT
57
+    B6  E295A4 ; #	BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
58
+    B7  E295A5 ; #	BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
59
+    B8  E295A6 ; #	BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
60
+    B9  E295A7 ; #	BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
61
+    BA  E295A8 ; #	BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
62
+    BB  E295A9 ; #	BOX DRAWINGS DOUBLE UP AND HORIZONTAL
63
+    BC  E295AA ; #	BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
64
+    BD  E295AB ; #	BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
65
+    BE  E295AC ; #	BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
66
+    BF  C2A9 ; #	COPYRIGHT SIGN
67
+    C0  D18E ; #	CYRILLIC SMALL LETTER YU
68
+    C1  D0B0 ; #	CYRILLIC SMALL LETTER A
69
+    C2  D0B1 ; #	CYRILLIC SMALL LETTER BE
70
+    C3  D186 ; #	CYRILLIC SMALL LETTER TSE
71
+    C4  D0B4 ; #	CYRILLIC SMALL LETTER DE
72
+    C5  D0B5 ; #	CYRILLIC SMALL LETTER IE
73
+    C6  D184 ; #	CYRILLIC SMALL LETTER EF
74
+    C7  D0B3 ; #	CYRILLIC SMALL LETTER GHE
75
+    C8  D185 ; #	CYRILLIC SMALL LETTER HA
76
+    C9  D0B8 ; #	CYRILLIC SMALL LETTER I
77
+    CA  D0B9 ; #	CYRILLIC SMALL LETTER SHORT I
78
+    CB  D0BA ; #	CYRILLIC SMALL LETTER KA
79
+    CC  D0BB ; #	CYRILLIC SMALL LETTER EL
80
+    CD  D0BC ; #	CYRILLIC SMALL LETTER EM
81
+    CE  D0BD ; #	CYRILLIC SMALL LETTER EN
82
+    CF  D0BE ; #	CYRILLIC SMALL LETTER O
83
+    D0  D0BF ; #	CYRILLIC SMALL LETTER PE
84
+    D1  D18F ; #	CYRILLIC SMALL LETTER YA
85
+    D2  D180 ; #	CYRILLIC SMALL LETTER ER
86
+    D3  D181 ; #	CYRILLIC SMALL LETTER ES
87
+    D4  D182 ; #	CYRILLIC SMALL LETTER TE
88
+    D5  D183 ; #	CYRILLIC SMALL LETTER U
89
+    D6  D0B6 ; #	CYRILLIC SMALL LETTER ZHE
90
+    D7  D0B2 ; #	CYRILLIC SMALL LETTER VE
91
+    D8  D18C ; #	CYRILLIC SMALL LETTER SOFT SIGN
92
+    D9  D18B ; #	CYRILLIC SMALL LETTER YERU
93
+    DA  D0B7 ; #	CYRILLIC SMALL LETTER ZE
94
+    DB  D188 ; #	CYRILLIC SMALL LETTER SHA
95
+    DC  D18D ; #	CYRILLIC SMALL LETTER E
96
+    DD  D189 ; #	CYRILLIC SMALL LETTER SHCHA
97
+    DE  D187 ; #	CYRILLIC SMALL LETTER CHE
98
+    DF  D18A ; #	CYRILLIC SMALL LETTER HARD SIGN
99
+    E0  D0AE ; #	CYRILLIC CAPITAL LETTER YU
100
+    E1  D090 ; #	CYRILLIC CAPITAL LETTER A
101
+    E2  D091 ; #	CYRILLIC CAPITAL LETTER BE
102
+    E3  D0A6 ; #	CYRILLIC CAPITAL LETTER TSE
103
+    E4  D094 ; #	CYRILLIC CAPITAL LETTER DE
104
+    E5  D095 ; #	CYRILLIC CAPITAL LETTER IE
105
+    E6  D0A4 ; #	CYRILLIC CAPITAL LETTER EF
106
+    E7  D093 ; #	CYRILLIC CAPITAL LETTER GHE
107
+    E8  D0A5 ; #	CYRILLIC CAPITAL LETTER HA
108
+    E9  D098 ; #	CYRILLIC CAPITAL LETTER I
109
+    EA  D099 ; #	CYRILLIC CAPITAL LETTER SHORT I
110
+    EB  D09A ; #	CYRILLIC CAPITAL LETTER KA
111
+    EC  D09B ; #	CYRILLIC CAPITAL LETTER EL
112
+    ED  D09C ; #	CYRILLIC CAPITAL LETTER EM
113
+    EE  D09D ; #	CYRILLIC CAPITAL LETTER EN
114
+    EF  D09E ; #	CYRILLIC CAPITAL LETTER O
115
+    F0  D09F ; #	CYRILLIC CAPITAL LETTER PE
116
+    F1  D0AF ; #	CYRILLIC CAPITAL LETTER YA
117
+    F2  D0A0 ; #	CYRILLIC CAPITAL LETTER ER
118
+    F3  D0A1 ; #	CYRILLIC CAPITAL LETTER ES
119
+    F4  D0A2 ; #	CYRILLIC CAPITAL LETTER TE
120
+    F5  D0A3 ; #	CYRILLIC CAPITAL LETTER U
121
+    F6  D096 ; #	CYRILLIC CAPITAL LETTER ZHE
122
+    F7  D092 ; #	CYRILLIC CAPITAL LETTER VE
123
+    F8  D0AC ; #	CYRILLIC CAPITAL LETTER SOFT SIGN
124
+    F9  D0AB ; #	CYRILLIC CAPITAL LETTER YERU
125
+    FA  D097 ; #	CYRILLIC CAPITAL LETTER ZE
126
+    FB  D0A8 ; #	CYRILLIC CAPITAL LETTER SHA
127
+    FC  D0AD ; #	CYRILLIC CAPITAL LETTER E
128
+    FD  D0A9 ; #	CYRILLIC CAPITAL LETTER SHCHA
129
+    FE  D0A7 ; #	CYRILLIC CAPITAL LETTER CHE
130
+    FF  D0AA ; #	CYRILLIC CAPITAL LETTER HARD SIGN
131
+}

+ 48 - 0
nginx-1.24.0/contrib/unicode2nginx/unicode-to-nginx.pl

@@ -0,0 +1,48 @@
1
+#!/usr/bin/perl -w
2
+
3
+# Convert unicode mappings to nginx configuration file format.
4
+
5
+# You may find useful mappings in various places, including
6
+# unicode.org official site:
7
+#
8
+# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT
9
+# http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT
10
+
11
+# Needs perl 5.6 or later.
12
+
13
+# Written by Maxim Dounin, mdounin@mdounin.ru
14
+
15
+###############################################################################
16
+
17
+require 5.006;
18
+
19
+while (<>) {
20
+	# Skip comments and empty lines
21
+
22
+	next if /^#/;
23
+	next if /^\s*$/;
24
+	chomp;
25
+
26
+	# Convert mappings
27
+
28
+	if (/^\s*0x(..)\s*0x(....)\s*(#.*)/) {
29
+		# Mapping <from-code> <unicode-code> "#" <unicode-name>
30
+		my $cs_code = $1;
31
+		my $un_code = $2;
32
+		my $un_name = $3;
33
+
34
+		# Produce UTF-8 sequence from character code;
35
+
36
+		my $un_utf8 = join('',
37
+			map { sprintf("%02X", $_) }
38
+			unpack("U0C*", pack("U", hex($un_code)))
39
+		);
40
+
41
+		print "    $cs_code  $un_utf8 ; $un_name\n";
42
+
43
+	} else {
44
+		warn "Unrecognized line: '$_'";
45
+	}
46
+}
47
+
48
+###############################################################################

+ 130 - 0
nginx-1.24.0/contrib/unicode2nginx/win-utf

@@ -0,0 +1,130 @@
1
+charset_map  windows-1251  utf-8 {
2
+
3
+    80  D082 ; #CYRILLIC CAPITAL LETTER DJE
4
+    81  D083 ; #CYRILLIC CAPITAL LETTER GJE
5
+    82  E2809A ; #SINGLE LOW-9 QUOTATION MARK
6
+    83  D193 ; #CYRILLIC SMALL LETTER GJE
7
+    84  E2809E ; #DOUBLE LOW-9 QUOTATION MARK
8
+    85  E280A6 ; #HORIZONTAL ELLIPSIS
9
+    86  E280A0 ; #DAGGER
10
+    87  E280A1 ; #DOUBLE DAGGER
11
+    88  E282AC ; #EURO SIGN
12
+    89  E280B0 ; #PER MILLE SIGN
13
+    8A  D089 ; #CYRILLIC CAPITAL LETTER LJE
14
+    8B  E280B9 ; #SINGLE LEFT-POINTING ANGLE QUOTATION MARK
15
+    8C  D08A ; #CYRILLIC CAPITAL LETTER NJE
16
+    8D  D08C ; #CYRILLIC CAPITAL LETTER KJE
17
+    8E  D08B ; #CYRILLIC CAPITAL LETTER TSHE
18
+    8F  D08F ; #CYRILLIC CAPITAL LETTER DZHE
19
+    90  D192 ; #CYRILLIC SMALL LETTER DJE
20
+    91  E28098 ; #LEFT SINGLE QUOTATION MARK
21
+    92  E28099 ; #RIGHT SINGLE QUOTATION MARK
22
+    93  E2809C ; #LEFT DOUBLE QUOTATION MARK
23
+    94  E2809D ; #RIGHT DOUBLE QUOTATION MARK
24
+    95  E280A2 ; #BULLET
25
+    96  E28093 ; #EN DASH
26
+    97  E28094 ; #EM DASH
27
+    99  E284A2 ; #TRADE MARK SIGN
28
+    9A  D199 ; #CYRILLIC SMALL LETTER LJE
29
+    9B  E280BA ; #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
30
+    9C  D19A ; #CYRILLIC SMALL LETTER NJE
31
+    9D  D19C ; #CYRILLIC SMALL LETTER KJE
32
+    9E  D19B ; #CYRILLIC SMALL LETTER TSHE
33
+    9F  D19F ; #CYRILLIC SMALL LETTER DZHE
34
+    A0  C2A0 ; #NO-BREAK SPACE
35
+    A1  D08E ; #CYRILLIC CAPITAL LETTER SHORT U
36
+    A2  D19E ; #CYRILLIC SMALL LETTER SHORT U
37
+    A3  D088 ; #CYRILLIC CAPITAL LETTER JE
38
+    A4  C2A4 ; #CURRENCY SIGN
39
+    A5  D290 ; #CYRILLIC CAPITAL LETTER GHE WITH UPTURN
40
+    A6  C2A6 ; #BROKEN BAR
41
+    A7  C2A7 ; #SECTION SIGN
42
+    A8  D081 ; #CYRILLIC CAPITAL LETTER IO
43
+    A9  C2A9 ; #COPYRIGHT SIGN
44
+    AA  D084 ; #CYRILLIC CAPITAL LETTER UKRAINIAN IE
45
+    AB  C2AB ; #LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
46
+    AC  C2AC ; #NOT SIGN
47
+    AD  C2AD ; #SOFT HYPHEN
48
+    AE  C2AE ; #REGISTERED SIGN
49
+    AF  D087 ; #CYRILLIC CAPITAL LETTER YI
50
+    B0  C2B0 ; #DEGREE SIGN
51
+    B1  C2B1 ; #PLUS-MINUS SIGN
52
+    B2  D086 ; #CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
53
+    B3  D196 ; #CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
54
+    B4  D291 ; #CYRILLIC SMALL LETTER GHE WITH UPTURN
55
+    B5  C2B5 ; #MICRO SIGN
56
+    B6  C2B6 ; #PILCROW SIGN
57
+    B7  C2B7 ; #MIDDLE DOT
58
+    B8  D191 ; #CYRILLIC SMALL LETTER IO
59
+    B9  E28496 ; #NUMERO SIGN
60
+    BA  D194 ; #CYRILLIC SMALL LETTER UKRAINIAN IE
61
+    BB  C2BB ; #RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
62
+    BC  D198 ; #CYRILLIC SMALL LETTER JE
63
+    BD  D085 ; #CYRILLIC CAPITAL LETTER DZE
64
+    BE  D195 ; #CYRILLIC SMALL LETTER DZE
65
+    BF  D197 ; #CYRILLIC SMALL LETTER YI
66
+    C0  D090 ; #CYRILLIC CAPITAL LETTER A
67
+    C1  D091 ; #CYRILLIC CAPITAL LETTER BE
68
+    C2  D092 ; #CYRILLIC CAPITAL LETTER VE
69
+    C3  D093 ; #CYRILLIC CAPITAL LETTER GHE
70
+    C4  D094 ; #CYRILLIC CAPITAL LETTER DE
71
+    C5  D095 ; #CYRILLIC CAPITAL LETTER IE
72
+    C6  D096 ; #CYRILLIC CAPITAL LETTER ZHE
73
+    C7  D097 ; #CYRILLIC CAPITAL LETTER ZE
74
+    C8  D098 ; #CYRILLIC CAPITAL LETTER I
75
+    C9  D099 ; #CYRILLIC CAPITAL LETTER SHORT I
76
+    CA  D09A ; #CYRILLIC CAPITAL LETTER KA
77
+    CB  D09B ; #CYRILLIC CAPITAL LETTER EL
78
+    CC  D09C ; #CYRILLIC CAPITAL LETTER EM
79
+    CD  D09D ; #CYRILLIC CAPITAL LETTER EN
80
+    CE  D09E ; #CYRILLIC CAPITAL LETTER O
81
+    CF  D09F ; #CYRILLIC CAPITAL LETTER PE
82
+    D0  D0A0 ; #CYRILLIC CAPITAL LETTER ER
83
+    D1  D0A1 ; #CYRILLIC CAPITAL LETTER ES
84
+    D2  D0A2 ; #CYRILLIC CAPITAL LETTER TE
85
+    D3  D0A3 ; #CYRILLIC CAPITAL LETTER U
86
+    D4  D0A4 ; #CYRILLIC CAPITAL LETTER EF
87
+    D5  D0A5 ; #CYRILLIC CAPITAL LETTER HA
88
+    D6  D0A6 ; #CYRILLIC CAPITAL LETTER TSE
89
+    D7  D0A7 ; #CYRILLIC CAPITAL LETTER CHE
90
+    D8  D0A8 ; #CYRILLIC CAPITAL LETTER SHA
91
+    D9  D0A9 ; #CYRILLIC CAPITAL LETTER SHCHA
92
+    DA  D0AA ; #CYRILLIC CAPITAL LETTER HARD SIGN
93
+    DB  D0AB ; #CYRILLIC CAPITAL LETTER YERU
94
+    DC  D0AC ; #CYRILLIC CAPITAL LETTER SOFT SIGN
95
+    DD  D0AD ; #CYRILLIC CAPITAL LETTER E
96
+    DE  D0AE ; #CYRILLIC CAPITAL LETTER YU
97
+    DF  D0AF ; #CYRILLIC CAPITAL LETTER YA
98
+    E0  D0B0 ; #CYRILLIC SMALL LETTER A
99
+    E1  D0B1 ; #CYRILLIC SMALL LETTER BE
100
+    E2  D0B2 ; #CYRILLIC SMALL LETTER VE
101
+    E3  D0B3 ; #CYRILLIC SMALL LETTER GHE
102
+    E4  D0B4 ; #CYRILLIC SMALL LETTER DE
103
+    E5  D0B5 ; #CYRILLIC SMALL LETTER IE
104
+    E6  D0B6 ; #CYRILLIC SMALL LETTER ZHE
105
+    E7  D0B7 ; #CYRILLIC SMALL LETTER ZE
106
+    E8  D0B8 ; #CYRILLIC SMALL LETTER I
107
+    E9  D0B9 ; #CYRILLIC SMALL LETTER SHORT I
108
+    EA  D0BA ; #CYRILLIC SMALL LETTER KA
109
+    EB  D0BB ; #CYRILLIC SMALL LETTER EL
110
+    EC  D0BC ; #CYRILLIC SMALL LETTER EM
111
+    ED  D0BD ; #CYRILLIC SMALL LETTER EN
112
+    EE  D0BE ; #CYRILLIC SMALL LETTER O
113
+    EF  D0BF ; #CYRILLIC SMALL LETTER PE
114
+    F0  D180 ; #CYRILLIC SMALL LETTER ER
115
+    F1  D181 ; #CYRILLIC SMALL LETTER ES
116
+    F2  D182 ; #CYRILLIC SMALL LETTER TE
117
+    F3  D183 ; #CYRILLIC SMALL LETTER U
118
+    F4  D184 ; #CYRILLIC SMALL LETTER EF
119
+    F5  D185 ; #CYRILLIC SMALL LETTER HA
120
+    F6  D186 ; #CYRILLIC SMALL LETTER TSE
121
+    F7  D187 ; #CYRILLIC SMALL LETTER CHE
122
+    F8  D188 ; #CYRILLIC SMALL LETTER SHA
123
+    F9  D189 ; #CYRILLIC SMALL LETTER SHCHA
124
+    FA  D18A ; #CYRILLIC SMALL LETTER HARD SIGN
125
+    FB  D18B ; #CYRILLIC SMALL LETTER YERU
126
+    FC  D18C ; #CYRILLIC SMALL LETTER SOFT SIGN
127
+    FD  D18D ; #CYRILLIC SMALL LETTER E
128
+    FE  D18E ; #CYRILLIC SMALL LETTER YU
129
+    FF  D18F ; #CYRILLIC SMALL LETTER YA
130
+}

+ 4 - 0
nginx-1.24.0/contrib/vim/ftdetect/nginx.vim

@@ -0,0 +1,4 @@
1
+au BufRead,BufNewFile *.nginx set ft=nginx
2
+au BufRead,BufNewFile */etc/nginx/* set ft=nginx
3
+au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
4
+au BufRead,BufNewFile nginx.conf set ft=nginx

+ 1 - 0
nginx-1.24.0/contrib/vim/ftplugin/nginx.vim

@@ -0,0 +1 @@
1
+setlocal commentstring=#\ %s

+ 11 - 0
nginx-1.24.0/contrib/vim/indent/nginx.vim

@@ -0,0 +1,11 @@
1
+if exists("b:did_indent")
2
+    finish
3
+endif
4
+let b:did_indent = 1
5
+
6
+setlocal indentexpr=
7
+
8
+" cindent actually works for nginx' simple file structure
9
+setlocal cindent
10
+" Just make sure that the comments are not reset as defs would be.
11
+setlocal cinkeys-=0#

Datei-Diff unterdrückt, da er zu groß ist
+ 2010 - 0
nginx-1.24.0/contrib/vim/syntax/nginx.vim


Datei-Diff unterdrückt, da er zu groß ist
+ 9045 - 0
nginx-1.24.0/docs/CHANGES


Datei-Diff unterdrückt, da er zu groß ist
+ 9202 - 0
nginx-1.24.0/docs/CHANGES.ru


+ 26 - 0
nginx-1.24.0/docs/LICENSE

@@ -0,0 +1,26 @@
1
+/* 
2
+ * Copyright (C) 2002-2021 Igor Sysoev
3
+ * Copyright (C) 2011-2022 Nginx, Inc.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ * SUCH DAMAGE.
26
+ */

+ 125 - 0
nginx-1.24.0/docs/OpenSSL.LICENSE

@@ -0,0 +1,125 @@
1
+
2
+  LICENSE ISSUES
3
+  ==============
4
+
5
+  The OpenSSL toolkit stays under a double license, i.e. both the conditions of
6
+  the OpenSSL License and the original SSLeay license apply to the toolkit.
7
+  See below for the actual license texts.
8
+
9
+  OpenSSL License
10
+  ---------------
11
+
12
+/* ====================================================================
13
+ * Copyright (c) 1998-2019 The OpenSSL Project.  All rights reserved.
14
+ *
15
+ * Redistribution and use in source and binary forms, with or without
16
+ * modification, are permitted provided that the following conditions
17
+ * are met:
18
+ *
19
+ * 1. Redistributions of source code must retain the above copyright
20
+ *    notice, this list of conditions and the following disclaimer.
21
+ *
22
+ * 2. Redistributions in binary form must reproduce the above copyright
23
+ *    notice, this list of conditions and the following disclaimer in
24
+ *    the documentation and/or other materials provided with the
25
+ *    distribution.
26
+ *
27
+ * 3. All advertising materials mentioning features or use of this
28
+ *    software must display the following acknowledgment:
29
+ *    "This product includes software developed by the OpenSSL Project
30
+ *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
31
+ *
32
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
33
+ *    endorse or promote products derived from this software without
34
+ *    prior written permission. For written permission, please contact
35
+ *    openssl-core@openssl.org.
36
+ *
37
+ * 5. Products derived from this software may not be called "OpenSSL"
38
+ *    nor may "OpenSSL" appear in their names without prior written
39
+ *    permission of the OpenSSL Project.
40
+ *
41
+ * 6. Redistributions of any form whatsoever must retain the following
42
+ *    acknowledgment:
43
+ *    "This product includes software developed by the OpenSSL Project
44
+ *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
45
+ *
46
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
47
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
48
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
49
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
50
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
51
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
52
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
53
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
54
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
55
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
57
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
58
+ * ====================================================================
59
+ *
60
+ * This product includes cryptographic software written by Eric Young
61
+ * (eay@cryptsoft.com).  This product includes software written by Tim
62
+ * Hudson (tjh@cryptsoft.com).
63
+ *
64
+ */
65
+
66
+ Original SSLeay License
67
+ -----------------------
68
+
69
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
70
+ * All rights reserved.
71
+ *
72
+ * This package is an SSL implementation written
73
+ * by Eric Young (eay@cryptsoft.com).
74
+ * The implementation was written so as to conform with Netscapes SSL.
75
+ *
76
+ * This library is free for commercial and non-commercial use as long as
77
+ * the following conditions are aheared to.  The following conditions
78
+ * apply to all code found in this distribution, be it the RC4, RSA,
79
+ * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
80
+ * included with this distribution is covered by the same copyright terms
81
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
82
+ *
83
+ * Copyright remains Eric Young's, and as such any Copyright notices in
84
+ * the code are not to be removed.
85
+ * If this package is used in a product, Eric Young should be given attribution
86
+ * as the author of the parts of the library used.
87
+ * This can be in the form of a textual message at program startup or
88
+ * in documentation (online or textual) provided with the package.
89
+ *
90
+ * Redistribution and use in source and binary forms, with or without
91
+ * modification, are permitted provided that the following conditions
92
+ * are met:
93
+ * 1. Redistributions of source code must retain the copyright
94
+ *    notice, this list of conditions and the following disclaimer.
95
+ * 2. Redistributions in binary form must reproduce the above copyright
96
+ *    notice, this list of conditions and the following disclaimer in the
97
+ *    documentation and/or other materials provided with the distribution.
98
+ * 3. All advertising materials mentioning features or use of this software
99
+ *    must display the following acknowledgement:
100
+ *    "This product includes cryptographic software written by
101
+ *     Eric Young (eay@cryptsoft.com)"
102
+ *    The word 'cryptographic' can be left out if the rouines from the library
103
+ *    being used are not cryptographic related :-).
104
+ * 4. If you include any Windows specific code (or a derivative thereof) from
105
+ *    the apps directory (application code) you must include an acknowledgement:
106
+ *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
107
+ *
108
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
109
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
110
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
111
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
112
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
113
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
114
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
115
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
116
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
117
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
118
+ * SUCH DAMAGE.
119
+ *
120
+ * The licence and distribution terms for any publically available version or
121
+ * derivative of this code cannot be changed.  i.e. this code cannot simply be
122
+ * copied and put under another distribution licence
123
+ * [including the GNU Public Licence.]
124
+ */
125
+

+ 94 - 0
nginx-1.24.0/docs/PCRE.LICENCE

@@ -0,0 +1,94 @@
1
+PCRE2 LICENCE
2
+-------------
3
+
4
+PCRE2 is a library of functions to support regular expressions whose syntax
5
+and semantics are as close as possible to those of the Perl 5 language.
6
+
7
+Releases 10.00 and above of PCRE2 are distributed under the terms of the "BSD"
8
+licence, as specified below, with one exemption for certain binary
9
+redistributions. The documentation for PCRE2, supplied in the "doc" directory,
10
+is distributed under the same terms as the software itself. The data in the
11
+testdata directory is not copyrighted and is in the public domain.
12
+
13
+The basic library functions are written in C and are freestanding. Also
14
+included in the distribution is a just-in-time compiler that can be used to
15
+optimize pattern matching. This is an optional feature that can be omitted when
16
+the library is built.
17
+
18
+
19
+THE BASIC LIBRARY FUNCTIONS
20
+---------------------------
21
+
22
+Written by:       Philip Hazel
23
+Email local part: Philip.Hazel
24
+Email domain:     gmail.com
25
+
26
+Retired from University of Cambridge Computing Service,
27
+Cambridge, England.
28
+
29
+Copyright (c) 1997-2021 University of Cambridge
30
+All rights reserved.
31
+
32
+
33
+PCRE2 JUST-IN-TIME COMPILATION SUPPORT
34
+--------------------------------------
35
+
36
+Written by:       Zoltan Herczeg
37
+Email local part: hzmester
38
+Email domain:     freemail.hu
39
+
40
+Copyright(c) 2010-2021 Zoltan Herczeg
41
+All rights reserved.
42
+
43
+
44
+STACK-LESS JUST-IN-TIME COMPILER
45
+--------------------------------
46
+
47
+Written by:       Zoltan Herczeg
48
+Email local part: hzmester
49
+Email domain:     freemail.hu
50
+
51
+Copyright(c) 2009-2021 Zoltan Herczeg
52
+All rights reserved.
53
+
54
+
55
+THE "BSD" LICENCE
56
+-----------------
57
+
58
+Redistribution and use in source and binary forms, with or without
59
+modification, are permitted provided that the following conditions are met:
60
+
61
+    * Redistributions of source code must retain the above copyright notices,
62
+      this list of conditions and the following disclaimer.
63
+
64
+    * Redistributions in binary form must reproduce the above copyright
65
+      notices, this list of conditions and the following disclaimer in the
66
+      documentation and/or other materials provided with the distribution.
67
+
68
+    * Neither the name of the University of Cambridge nor the names of any
69
+      contributors may be used to endorse or promote products derived from this
70
+      software without specific prior written permission.
71
+
72
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
73
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
74
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
75
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
76
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
77
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
78
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
79
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
80
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
81
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
82
+POSSIBILITY OF SUCH DAMAGE.
83
+
84
+
85
+EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES
86
+------------------------------------------
87
+
88
+The second condition in the BSD licence (covering binary redistributions) does
89
+not apply all the way down a chain of software. If binary package A includes
90
+PCRE2, it must respect the condition, but if package B is software that
91
+includes package A, the condition is not imposed on package B unless it uses
92
+PCRE2 independently.
93
+
94
+End

+ 3 - 0
nginx-1.24.0/docs/README

@@ -0,0 +1,3 @@
1
+
2
+Documentation is available at http://nginx.org
3
+

+ 20 - 0
nginx-1.24.0/docs/zlib.LICENSE

@@ -0,0 +1,20 @@
1
+ (C) 1995-2022 Jean-loup Gailly and Mark Adler
2
+
3
+  This software is provided 'as-is', without any express or implied
4
+  warranty.  In no event will the authors be held liable for any damages
5
+  arising from the use of this software.
6
+
7
+  Permission is granted to anyone to use this software for any purpose,
8
+  including commercial applications, and to alter it and redistribute it
9
+  freely, subject to the following restrictions:
10
+
11
+  1. The origin of this software must not be misrepresented; you must not
12
+     claim that you wrote the original software. If you use this software
13
+     in a product, an acknowledgment in the product documentation would be
14
+     appreciated but is not required.
15
+  2. Altered source versions must be plainly marked as such, and must not be
16
+     misrepresented as being the original software.
17
+  3. This notice may not be removed or altered from any source distribution.
18
+
19
+  Jean-loup Gailly        Mark Adler
20
+  jloup@gzip.org          madler@alumni.caltech.edu

+ 19 - 0
nginx-1.24.0/html/50x.html

@@ -0,0 +1,19 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+<title>Error</title>
5
+<style>
6
+html { color-scheme: light dark; }
7
+body { width: 35em; margin: 0 auto;
8
+font-family: Tahoma, Verdana, Arial, sans-serif; }
9
+</style>
10
+</head>
11
+<body>
12
+<h1>An error occurred.</h1>
13
+<p>Sorry, the page you are looking for is currently unavailable.<br/>
14
+Please try again later.</p>
15
+<p>If you are the system administrator of this resource then you should check
16
+the error log for details.</p>
17
+<p><em>Faithfully yours, nginx.</em></p>
18
+</body>
19
+</html>

+ 23 - 0
nginx-1.24.0/html/index.html

@@ -0,0 +1,23 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+<title>Welcome to nginx!</title>
5
+<style>
6
+html { color-scheme: light dark; }
7
+body { width: 35em; margin: 0 auto;
8
+font-family: Tahoma, Verdana, Arial, sans-serif; }
9
+</style>
10
+</head>
11
+<body>
12
+<h1>Welcome to nginx!</h1>
13
+<p>If you see this page, the nginx web server is successfully installed and
14
+working. Further configuration is required.</p>
15
+
16
+<p>For online documentation and support please refer to
17
+<a href="http://nginx.org/">nginx.org</a>.<br/>
18
+Commercial support is available at
19
+<a href="http://nginx.com/">nginx.com</a>.</p>
20
+
21
+<p><em>Thank you for using nginx.</em></p>
22
+</body>
23
+</html>

BIN
nginx-1.24.0/nginx.exe


+ 5 - 0
start_nginx.ps1

@@ -0,0 +1,5 @@
1
+# Start Nginx proxy server
2
+Write-Host "Starting Nginx proxy server..." -ForegroundColor Green
3
+cd "nginx-1.24.0"
4
+Start-Process -FilePath ".\nginx.exe" -WorkingDirectory (Get-Location) -NoNewWindow
5
+Write-Host "Nginx started successfully!" -ForegroundColor Green

+ 27 - 16
start_proxy.bat

@@ -19,37 +19,48 @@ if %errorLevel% == 0 (
19 19
 )
20 20
 
21 21
 echo.
22
-echo [1/4] Adding marketData to hosts file...
22
+echo [1/4] Adding market-price.insightbull.io to hosts file...
23 23
 set "hosts_file=%windir%\System32\drivers\etc\hosts"
24
-set "entry=127.0.0.1 marketData"
24
+set "entry=127.0.0.1 market-price.insightbull.io"
25 25
 
26 26
 REM Check if entry already exists
27
-findstr /C:"marketData" "%hosts_file%" >nul 2>&1
27
+findstr /C:"market-price.insightbull.io" "%hosts_file%" >nul 2>&1
28 28
 if !errorLevel! == 0 (
29
-    echo [✓] marketData already exists in hosts file
29
+    echo [✓] market-price.insightbull.io already exists in hosts file
30 30
 ) else (
31 31
     echo. >> "%hosts_file%"
32 32
     echo !entry! >> "%hosts_file%"
33
-    echo [✓] Added marketData to hosts file
33
+    echo [✓] Added market-price.insightbull.io to hosts file
34 34
 )
35 35
 
36 36
 echo.
37 37
 echo [2/4] Starting Node.js API server...
38 38
 echo Starting API on port 3001...
39 39
 
40
-REM Get current directory and store it
40
+REM Get current directory and store it for both services
41 41
 set "PROJECT_DIR=%cd%"
42
-start "MarketDataAPI" cmd /k "cd /d "%PROJECT_DIR%" && npm start"
42
+set "NGINX_DIR=%PROJECT_DIR%\nginx-1.24.0"
43 43
 
44
-REM Wait a moment for API to start
44
+REM Start Node.js API server from project directory
45
+start "MarketDataAPI" cmd /k "cd /d "%PROJECT_DIR%" && node src/server.js"
46
+
47
+REM Wait for API to start
45 48
 timeout /t 5 /nobreak >nul
46 49
 
50
+REM Test if API server started successfully
51
+curl -s http://localhost:3001/health >nul 2>&1
52
+if !errorLevel! == 0 (
53
+    echo [✓] Node.js API server started successfully
54
+) else (
55
+    echo [✗] Failed to start API server
56
+    goto :error
57
+)
58
+
47 59
 echo.
48 60
 echo [3/4] Starting Nginx proxy server...
49 61
 
50
-REM Get current directory for nginx path
51
-set "NGINX_PATH=%cd%\nginx-1.24.0\nginx.exe"
52
-start "NginxProxy" "%NGINX_PATH%"
62
+REM Start Nginx from its own directory
63
+start "NginxProxy" cmd /k "cd /d "%NGINX_DIR%" && nginx.exe"
53 64
 
54 65
 REM Wait for Nginx to start
55 66
 timeout /t 3 /nobreak >nul
@@ -57,7 +68,7 @@ timeout /t 3 /nobreak >nul
57 68
 echo.
58 69
 echo [4/4] Testing proxy connection...
59 70
 echo Testing basic connectivity...
60
-curl -s http://marketData >nul 2>&1
71
+curl -s http://market-price.insightbull.io >nul 2>&1
61 72
 if !errorLevel! == 0 (
62 73
     echo [✓] Proxy server is responding
63 74
 ) else (
@@ -67,7 +78,7 @@ if !errorLevel! == 0 (
67 78
 
68 79
 echo.
69 80
 echo Testing API through proxy...
70
-curl -s http://marketData/api/health >nul 2>&1
81
+curl -s http://market-price.insightbull.io/api/health >nul 2>&1
71 82
 if !errorLevel! == 0 (
72 83
     echo [✓] API proxy is working correctly
73 84
 ) else (
@@ -82,10 +93,10 @@ echo ========================================
82 93
 echo.
83 94
 echo Your proxy is now running:
84 95
 echo - API Server: http://localhost:3001
85
-echo - Proxy URL:  http://marketData
86
-echo - MT5 URL:   http://marketData/api/endpoint
96
+echo - Proxy URL:  http://market-price.insightbull.io
97
+echo - MT5 URL:   http://market-price.insightbull.io/api/endpoint
87 98
 echo.
88
-echo You can now use http://marketData/api/ in your MT5 EA
99
+echo You can now use http://market-price.insightbull.io/api/ in your MT5 EA
89 100
 echo.
90 101
 echo Press any key to close this window...
91 102
 pause >nul

+ 15 - 10
stop_proxy.bat

@@ -4,23 +4,24 @@ echo    Market Data Proxy Stopper
4 4
 echo ========================================
5 5
 echo.
6 6
 
7
-echo Stopping Nginx...
8
-REM Find and kill nginx process
7
+REM Stop Nginx processes
8
+echo Stopping Nginx proxy server...
9 9
 taskkill /f /im nginx.exe >nul 2>&1
10
-if !errorLevel! == 0 (
11
-    echo [✓] Nginx stopped
10
+if errorlevel 1 (
11
+    echo [ℹ] Nginx proxy server was not running
12 12
 ) else (
13
-    echo [ℹ] Nginx was not running
13
+    echo [✓] Nginx proxy server stopped
14 14
 )
15 15
 
16 16
 echo.
17 17
 echo Stopping Node.js API server...
18
-REM Find and kill node processes (npm start creates node.exe)
18
+
19
+REM Stop all node.exe processes
19 20
 taskkill /f /im node.exe >nul 2>&1
20
-if !errorLevel! == 0 (
21
-    echo [✓] Node.js API server stopped
22
-) else (
21
+if errorlevel 1 (
23 22
     echo [ℹ] Node.js API server was not running
23
+) else (
24
+    echo [✓] Node.js API server stopped
24 25
 )
25 26
 
26 27
 echo.
@@ -28,7 +29,11 @@ echo ========================================
28 29
 echo    All services stopped!
29 30
 echo ========================================
30 31
 echo.
31
-echo You can now safely close applications or restart services.
32
+echo Services that were running have been stopped.
33
+echo You can now safely:
34
+echo - Close applications
35
+echo - Restart services
36
+echo - Run start_proxy.bat again
32 37
 echo.
33 38
 echo Press any key to close this window...
34 39
 pause >nul