This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-07-22 13:20:17 +00:00
|
|
|
user nginx;
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
error_log stderr warn;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
log_format json_combined escape=json
|
|
|
|
'{'
|
|
|
|
'"time_local":"$time_local",'
|
|
|
|
'"remote_addr":"$remote_addr",'
|
|
|
|
'"remote_user":"$remote_user",'
|
|
|
|
'"request":"$request",'
|
|
|
|
'"status": "$status",'
|
|
|
|
'"body_bytes_sent":"$body_bytes_sent",'
|
|
|
|
'"request_time":"$request_time",'
|
|
|
|
'"http_referrer":"$http_referer",'
|
|
|
|
'"http_user_agent":"$http_user_agent"'
|
|
|
|
'}';
|
|
|
|
|
|
|
|
access_log /dev/stdout json_combined;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_types application/javascript image/* text/css;
|
|
|
|
gunzip on;
|
2019-10-15 14:56:24 +00:00
|
|
|
add_header X-passbook-Version 0.6.11-beta;
|
2019-07-22 13:20:17 +00:00
|
|
|
add_header Vary X-passbook-Version;
|
2019-10-04 10:01:38 +00:00
|
|
|
root /data/;
|
2019-07-22 13:20:17 +00:00
|
|
|
|
|
|
|
location /_/healthz {
|
|
|
|
return 204;
|
|
|
|
}
|
|
|
|
location ~* \.(jpg|jpeg|png|gif|ico)$ {
|
|
|
|
expires 30d;
|
|
|
|
}
|
|
|
|
location ~* \.(css|js)$ {
|
|
|
|
expires 7d;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
|
|
listen 8080;
|
|
|
|
|
|
|
|
location = /stub_status {
|
|
|
|
stub_status;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|