|
@@ -1,9 +1,9 @@
|
|
|
http {
|
|
http {
|
|
|
server {
|
|
server {
|
|
|
- # server_name example.com;
|
|
|
|
|
- # ssl_certificate cert/example.com/ecc.cer;
|
|
|
|
|
- # ssl_certificate_key cert/example.com/ecc.key;
|
|
|
|
|
- # listen 8443 ssl http2;
|
|
|
|
|
|
|
+ server_name *.etherdream.com;
|
|
|
|
|
+ ssl_certificate cert/etherdream.com/ecc.cer;
|
|
|
|
|
+ ssl_certificate_key cert/etherdream.com/ecc.key;
|
|
|
|
|
+ listen 8443 ssl http2;
|
|
|
listen 8080;
|
|
listen 8080;
|
|
|
include api.conf;
|
|
include api.conf;
|
|
|
}
|
|
}
|
|
@@ -32,11 +32,11 @@ http {
|
|
|
# https://nginx.org/en/docs/http/ngx_http_log_module.html
|
|
# https://nginx.org/en/docs/http/ngx_http_log_module.html
|
|
|
# separated by tab (\t)
|
|
# separated by tab (\t)
|
|
|
log_format log_proxy escape=none
|
|
log_format log_proxy escape=none
|
|
|
- '01 ' # ver prefix
|
|
|
|
|
|
|
+ '02 ' # ver prefix
|
|
|
'$time_iso8601 $_origin_id $_ver $remote_addr '
|
|
'$time_iso8601 $_origin_id $_ver $remote_addr '
|
|
|
'$_level $_switched $upstream_cache_status $request_time '
|
|
'$_level $_switched $upstream_cache_status $request_time '
|
|
|
'$request_length $bytes_sent '
|
|
'$request_length $bytes_sent '
|
|
|
- '$request_method $_url $status $upstream_http_access_control_allow_origin '
|
|
|
|
|
|
|
+ '$request_method $_url $status $_bodyhash $upstream_http_access_control_allow_origin '
|
|
|
'$http_user_agent $_ref $_mode $_type'
|
|
'$http_user_agent $_ref $_mode $_type'
|
|
|
;
|
|
;
|
|
|
access_log logs/proxy.log log_proxy buffer=64k flush=1s;
|
|
access_log logs/proxy.log log_proxy buffer=64k flush=1s;
|
|
@@ -61,6 +61,7 @@ http {
|
|
|
lua_load_resty_core off;
|
|
lua_load_resty_core off;
|
|
|
|
|
|
|
|
map $http_origin $_origin_id {
|
|
map $http_origin $_origin_id {
|
|
|
|
|
+ '' 'mysite';
|
|
|
include allowed-sites.conf;
|
|
include allowed-sites.conf;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|