diff options
author | Jinwei Zhao <[email protected]> | 2016-11-14 22:25:30 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2016-11-14 22:25:30 +0800 |
commit | 46fac791df153c437aa182896366c9d45c012404 (patch) | |
tree | 7c2e626336f6837567dd4c363640056ccdd8b171 /nginx.conf | |
parent | 380ab77b485c1e7fe8d7546ddfec9d2252b15c11 (diff) | |
download | nginx-proxy-google-46fac791df153c437aa182896366c9d45c012404.tar.gz |
nginx-proxy-google
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..2b5da16 --- /dev/null +++ b/nginx.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | user nginx; | ||
2 | worker_processes 1; | ||
3 | |||
4 | events { | ||
5 | worker_connections 1024; | ||
6 | } | ||
7 | |||
8 | http { | ||
9 | include mime.types; | ||
10 | default_type application/octet-stream; | ||
11 | sendfile on; | ||
12 | keepalive_timeout 65; | ||
13 | |||
14 | server { | ||
15 | listen 80; | ||
16 | server_name localhost; | ||
17 | |||
18 | resolver 8.8.8.8; | ||
19 | |||
20 | location / { | ||
21 | google on; | ||
22 | google_scholar on; | ||
23 | google_language "en"; | ||
24 | } | ||
25 | |||
26 | error_page 500 502 503 504 /50x.html; | ||
27 | location = /50x.html { | ||
28 | root html; | ||
29 | } | ||
30 | } | ||
31 | } \ No newline at end of file | ||