-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
51 lines (41 loc) · 1009 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
user root;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events
{
worker_connections 1024;
}
http
{
include /etc/nginx/mime.types;
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:30m inactive=24h max_size=200m use_temp_path=off;
proxy_pass_request_headers on;
##proxy_redirect off;
proxy_set_header Connection keep-alive;
gzip on;
gzip_proxied any;
add_header X-Host $hostname;
add_header X-Cache-Status $upstream_cache_status;
map $sent_http_content_type $expires
{
default off;
text/css 1M;
application/javascript 1M;
application/x-font-woff 3M;
~image/ 6M;
}
server
{
listen 80;
server_name localhost;
server_name 127.0.0.1;
proxy_set_header Authorization "Basic {{ PASS_BASE64 }}";
proxy_ssl_certificate /etc/nginx/ssl/client.pem;
proxy_ssl_certificate_key /etc/nginx/ssl/client.key;
location /
{
proxy_pass https://{{ BASE_URL }}/;
}
}
}