1
0
Fork 0
mirror of https://gitlab.com/hagrid-keyserver/hagrid.git synced 2023-02-13 20:55:02 -05:00
hagrid-keyserver--hagrid/nginx.conf

33 lines
650 B
Nginx Configuration File
Raw Normal View History

2018-10-25 11:38:49 -04:00
error_log stderr;
pid nginx/nginx.pid;
daemon off;
http {
# allow 6 requests per min -> one each 10s on avg.
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=6r/m;
proxy_cache_path /tmp/nginx_cache use_temp_path=off keys_zone=static_cache:10m;
proxy_cache_valid 200 5m;
2018-10-25 11:38:49 -04:00
server {
2019-02-26 07:13:37 -05:00
listen 0.0.0.0:8090;
2018-10-25 11:38:49 -04:00
access_log nginx/access_log;
2019-02-26 07:57:41 -05:00
# To debug the rewrite rules, enable these directives:
#error_log stderr notice;
#rewrite_log on;
2018-10-25 11:38:49 -04:00
include /etc/nginx/mime.types;
default_type application/octet-stream;
root dist/public;
2018-10-25 11:38:49 -04:00
2019-02-27 05:39:38 -05:00
include hagrid-routes.conf;
2018-10-25 11:38:49 -04:00
}
}
events {
worker_connections 4096;
}