aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorxiaolongx.jiang <xiaolongx.jiang@intel.com>2020-05-12 05:07:26 +0000
committerxiaolongx.jiang <xiaolongx.jiang@intel.com>2020-05-15 16:42:40 +0000
commit5fad054675b47633f5ba1e33f775e34be4917c06 (patch)
tree49a3eafb868726c4478c18f7dc732799228c3c4b /configs
parent1e75471aed27194fb8ee0b2c07c64fb8a8f55279 (diff)
add makefile
Signed-off-by: xiaolongx.jiang <xiaolongx.jiang@intel.com> Change-Id: Iaf6ec4d79538f8810d0c0ebc69b458d40ffb9c53
Diffstat (limited to 'configs')
-rw-r--r--configs/mime.types95
-rw-r--r--configs/nginx.conf104
-rw-r--r--configs/tls-test-cert23
-rw-r--r--configs/tls-test-key28
4 files changed, 216 insertions, 34 deletions
diff --git a/configs/mime.types b/configs/mime.types
new file mode 100644
index 0000000..8a2348a
--- /dev/null
+++ b/configs/mime.types
@@ -0,0 +1,95 @@
+
+types {
+ text/html html htm shtml;
+ text/css css;
+ text/xml xml;
+ image/gif gif;
+ image/jpeg jpeg jpg;
+ application/javascript js;
+ application/atom+xml atom;
+ application/rss+xml rss;
+
+ text/mathml mml;
+ text/plain txt;
+ text/vnd.sun.j2me.app-descriptor jad;
+ text/vnd.wap.wml wml;
+ text/x-component htc;
+
+ image/png png;
+ image/svg+xml svg svgz;
+ image/tiff tif tiff;
+ image/vnd.wap.wbmp wbmp;
+ image/webp webp;
+ image/x-icon ico;
+ image/x-jng jng;
+ image/x-ms-bmp bmp;
+
+ application/font-woff woff;
+ application/java-archive jar war ear;
+ application/json json;
+ application/mac-binhex40 hqx;
+ application/msword doc;
+ application/pdf pdf;
+ application/postscript ps eps ai;
+ application/rtf rtf;
+ application/vnd.apple.mpegurl m3u8;
+ application/vnd.google-earth.kml+xml kml;
+ application/vnd.google-earth.kmz kmz;
+ application/vnd.ms-excel xls;
+ application/vnd.ms-fontobject eot;
+ application/vnd.ms-powerpoint ppt;
+ application/vnd.oasis.opendocument.graphics odg;
+ application/vnd.oasis.opendocument.presentation odp;
+ application/vnd.oasis.opendocument.spreadsheet ods;
+ application/vnd.oasis.opendocument.text odt;
+ application/vnd.openxmlformats-officedocument.presentationml.presentation
+ pptx;
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
+ xlsx;
+ application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ docx;
+ application/vnd.wap.wmlc wmlc;
+ application/x-7z-compressed 7z;
+ application/x-cocoa cco;
+ application/x-java-archive-diff jardiff;
+ application/x-java-jnlp-file jnlp;
+ application/x-makeself run;
+ application/x-perl pl pm;
+ application/x-pilot prc pdb;
+ application/x-rar-compressed rar;
+ application/x-redhat-package-manager rpm;
+ application/x-sea sea;
+ application/x-shockwave-flash swf;
+ application/x-stuffit sit;
+ application/x-tcl tcl tk;
+ application/x-x509-ca-cert der pem crt;
+ application/x-xpinstall xpi;
+ application/xhtml+xml xhtml;
+ application/xspf+xml xspf;
+ application/zip zip;
+
+ application/octet-stream bin exe dll;
+ application/octet-stream deb;
+ application/octet-stream dmg;
+ application/octet-stream iso img;
+ application/octet-stream msi msp msm;
+
+ audio/midi mid midi kar;
+ audio/mpeg mp3;
+ audio/ogg ogg;
+ audio/x-m4a m4a;
+ audio/x-realaudio ra;
+
+ video/3gpp 3gpp 3gp;
+ video/mp2t ts;
+ video/mp4 mp4;
+ video/mpeg mpeg mpg;
+ video/quicktime mov;
+ video/webm webm;
+ video/x-flv flv;
+ video/x-m4v m4v;
+ video/x-mng mng;
+ video/x-ms-asf asx asf;
+ video/x-ms-wmv wmv;
+ video/x-msvideo avi;
+}
diff --git a/configs/nginx.conf b/configs/nginx.conf
index 0466aeb..d184b89 100644
--- a/configs/nginx.conf
+++ b/configs/nginx.conf
@@ -1,5 +1,8 @@
-user xxx;
-worker_processes 1;
+#user xxx;
+#worker_processes 1;
+#worker_processes 2;
+#worker_processes 4;
+#worker_processes 8;
master_process on;
daemon off;
@@ -7,6 +10,7 @@ daemon off;
worker_rlimit_nofile 10240;
events {
use epoll;
+ #epoll_events 512;
worker_connections 10240;
accept_mutex off;
multi_accept off;
@@ -25,53 +29,85 @@ http {
keepalive_requests 1000000;
server {
- listen 8000;
- root /path/to/root/;
+ listen 443;
+ #ssl_protocols TLSv1.2;
+ #ssl_prefer_server_ciphers on;
+ root html;
index index.html index.htm;
location /return {
return 204;
}
location /64B.json {
- return 200 '{"status":"success","result":"this is a 64Byte json file test!"}';
+ return 200 '{"status":"success","result":"this is \
+ a 64Byte json file test!"}';
}
location /1KB.json{
return 201 '{"status":"success","result":"\
- Nanchang, which was the capital of Yuzhang Prefecture during the HanDynasty, \
- now falls under the jurisdiction of Hongzhou. It straddles the borderof the \
- influence of the Ye and Zhen constellations , and is adjacent to theHeng \
- and the Lu mountains . The three rivers enfold it like the frontpart \
- of a garment and the five lakes encircle it like a girdle. Itcontrols \
- the savage Jing area and connects Ou and Yue, and itsproducts are \
- nature’s jewels. The radiance of its legendary sword shootsdirectly upward \
- between the constellations Niu and Dou. Its talented peopleare outstanding,\
- and the spirit of intelligence pervades the place. This wasthe place where Xu \
- Ru spent the night on his visit to Chen Fan (10). The mightyHongzhou spreads \
- out immensely amid the fog, and the intellectual luminariesare as numerous as\
+ Nanchang, which was the capital of Yuzhang \
+ Prefecture during the HanDynasty, \
+ now falls under the jurisdiction of Hongzhou. \
+ It straddles the borderof the \
+ influence of the Ye and Zhen constellations , \
+ and is adjacent to theHeng \
+ and the Lu mountains . The three rivers enfold \
+ it like the frontpart \
+ of a garment and the five lakes encircle it \
+ like a girdle. Itcontrols \
+ the savage Jing area and connects Ou and Yue, \
+ and itsproducts are \
+ nature’s jewels. The radiance of its legendary \
+ sword shootsdirectly upward \
+ between the constellations Niu and Dou. \
+ Its talented peopleare outstanding,\
+ and the spirit of intelligence pervades the \
+ place. This wasthe place where Xu \
+ Ru spent the night on his visit to Chen Fan (10). \
+ The mightyHongzhou spreads \
+ out immensely amid the fog, and the intellectual \
+ luminariesare as numerous as\
meteors chasing one another. \
"}';
}
location /2KB.json{
return 202 '{"status":"success","result":"\
Hello from NGINX, 2KB test\
- Nanchang, which was the capital of Yuzhang Prefecture during the HanDynasty, \
- now falls under the jurisdiction of Hongzhou. It straddles the borderof the \
- influence of the Ye and Zhen constellations , and is adjacent to theHeng \
- and the Lu mountains . The three rivers enfold it like the frontpart \
- of a garment and the five lakes encircle it like a girdle. Itcontrols \
- the savage Jing area and connects Ou and Yue, and itsproducts are \
- nature’s jewels. The radiance of its legendary sword shootsdirectly upward \
- between the constellations Niu and Dou. Its talented peopleare outstanding,\
- and the spirit of intelligence pervades the place. This wasthe place where Xu \
- Ru spent the night on his visit to Chen Fan (10). The mightyHongzhou spreads \
- out immensely amid the fog, and the intellectual luminariesare as numerous as\
+ Nanchang, which was the capital of Yuzhang \
+ Prefecture during the HanDynasty, \
+ now falls under the jurisdiction of Hongzhou. \
+ It straddles the borderof the \
+ influence of the Ye and Zhen constellations , \
+ and is adjacent to theHeng \
+ and the Lu mountains . The three rivers enfold \
+ it like the frontpart \
+ of a garment and the five lakes encircle it \
+ like a girdle. Itcontrols \
+ the savage Jing area and connects Ou and Yue, \
+ and itsproducts are \
+ nature’s jewels. The radiance of its legendary \
+ sword shootsdirectly upward \
+ between the constellations Niu and Dou. \
+ Its talented peopleare outstanding,\
+ and the spirit of intelligence pervades \
+ the place. This wasthe place where Xu \
+ Ru spent the night on his visit to \
+ Chen Fan (10). The mightyHongzhou spreads \
+ out immensely amid the fog, and the intellectual \
+ luminariesare as numerous as\
meteors chasing one another.\
- of a garment and the five lakes encircle it like a girdle. Itcontrols \
- the savage Jing area and connects Ou and Yue, and itsproducts are \
- nature’s jewels. The radiance of its legendary sword shootsdirectly upward \
- between the constellations Niu and Dou. Its talented peopleare outstanding,\
- and the spirit of intelligence pervades the place. This wasthe place where Xu \
- Ru spent the night on his visit to Chen Fan (10). The mightyHongzhou spreads \
- out immensely amid the fog, and the intellectual luminariesare as numerous as\
+ of a garment and the five lakes encircle \
+ it like a girdle. Itcontrols \
+ the savage Jing area and connects \
+ Ou and Yue, and itsproducts are \
+ nature’s jewels. The radiance of its \
+ legendary sword shootsdirectly upward \
+ between the constellations Niu and Dou. \
+ Its talented peopleare outstanding,\
+ and the spirit of intelligence pervades \
+ the place. This wasthe place where Xu \
+ Ru spent the night on his visit to \
+ Chen Fan (10). The mightyHongzhou spreads \
+ out immensely amid the fog, and the \
+ intellectual luminariesare as numerous as\
meteors chasing one another. \
"}';
}
diff --git a/configs/tls-test-cert b/configs/tls-test-cert
new file mode 100644
index 0000000..53ae6da
--- /dev/null
+++ b/configs/tls-test-cert
@@ -0,0 +1,23 @@
+-----BEGIN CERTIFICATE-----
+MIID5zCCAs+gAwIBAgIJALeMYCEHrTtJMA0GCSqGSIb3DQEBCwUAMIGJMQswCQYD
+VQQGEwJVUzELMAkGA1UECAwCQ0ExETAPBgNVBAcMCFNhbiBKb3NlMQ4wDAYDVQQK
+DAVDaXNjbzEOMAwGA1UECwwFZmQuaW8xFjAUBgNVBAMMDXRlc3R0bHMuZmQuaW8x
+IjAgBgkqhkiG9w0BCQEWE3ZwcC1kZXZAbGlzdHMuZmQuaW8wHhcNMTgwMzA1MjEx
+NTEyWhcNMjgwMzAyMjExNTEyWjCBiTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNB
+MREwDwYDVQQHDAhTYW4gSm9zZTEOMAwGA1UECgwFQ2lzY28xDjAMBgNVBAsMBWZk
+LmlvMRYwFAYDVQQDDA10ZXN0dGxzLmZkLmlvMSIwIAYJKoZIhvcNAQkBFhN2cHAt
+ZGV2QGxpc3RzLmZkLmlvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
+4C1k8a1DuStgggqT4o09fP9sJ2dC54bxhS/Xk2VEfaIZ222WSo4X/syRVfVy9Yah
+cpI1zJ/RDxaZSFhgA+nPZBrFMsrULkrdAOpOVj8eDEp9JuWdO2ODSoFnCvLxcYWB
+Yc5kHryJpEaGJl1sFQSesnzMFty/59ta0stk0Fp8r5NhIjWvSovGzPo6Bhz+VS2c
+ebIZh4x1t2hHaFcgm0qJoJ6DceReWCW8w+yOVovTolGGq+bpb2Hn7MnRSZ2K2NdL
++aLXpkZbS/AODP1FF2vTO1mYL290LO7/51vJmPXNKSDYMy5EvILr5/VqtjsFCwRL
+Q4jcM/+GeHSAFWx4qIv0BwIDAQABo1AwTjAdBgNVHQ4EFgQUWa1SOB37xmT53tZQ
+aXuLLhRI7U8wHwYDVR0jBBgwFoAUWa1SOB37xmT53tZQaXuLLhRI7U8wDAYDVR0T
+BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAoUht13W4ya27NVzQuCMvqPWL3VM4
+3xbPFk02FaGz/WupPu276zGlzJAZrbuDcQowwwU1Ni1Yygxl96s1c2M5rHDTrOKG
+rK0hbkSFBo+i6I8u4HiiQ4rYmG0Hv6+sXn3of0HsbtDPGgWZoipPWDljPYEURu3e
+3HRe/Dtsj9CakBoSDzs8ndWaBR+f4sM9Tk1cjD46Gq2T/qpSPXqKxEUXlzhdCAn4
+twub17Bq2kykHpppCwPg5M+v30tHG/R2Go15MeFWbEJthFk3TZMjKL7UFs7fH+x2
+wSonXb++jY+KmCb93C+soABBizE57g/KmiR2IxQ/LMjDik01RSUIaM0lLA==
+-----END CERTIFICATE-----
diff --git a/configs/tls-test-key b/configs/tls-test-key
new file mode 100644
index 0000000..59d441b
--- /dev/null
+++ b/configs/tls-test-key
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDgLWTxrUO5K2CC
+CpPijT18/2wnZ0LnhvGFL9eTZUR9ohnbbZZKjhf+zJFV9XL1hqFykjXMn9EPFplI
+WGAD6c9kGsUyytQuSt0A6k5WPx4MSn0m5Z07Y4NKgWcK8vFxhYFhzmQevImkRoYm
+XWwVBJ6yfMwW3L/n21rSy2TQWnyvk2EiNa9Ki8bM+joGHP5VLZx5shmHjHW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