mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 09:55:29 +08:00
39 lines
810 B
Plaintext
39 lines
810 B
Plaintext
uwsgi_cache_path /tmp/blockstack_uwsgi_cache levels=1:2 keys_zone=api:50m;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
server_name localhost;
|
|
return 301 https://core.blockstack.org$request_uri;
|
|
|
|
location / {
|
|
include uwsgi_params;
|
|
uwsgi_pass unix:/path/to/nginx/blockstack_api.sock;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 default_server;
|
|
server_name localhost;
|
|
|
|
ssl on;
|
|
ssl_certificate /path/to/cert/fullchain.pem;
|
|
ssl_certificate_key /path/to/cert/privkey.pem;
|
|
|
|
location / {
|
|
include uwsgi_params;
|
|
uwsgi_pass unix:/tmp/blockstack_api.sock;
|
|
|
|
# expires 5m;
|
|
|
|
uwsgi_cache api;
|
|
uwsgi_cache_key $uri$args;
|
|
|
|
add_header X-Cache-Status $upstream_cache_status;
|
|
|
|
uwsgi_cache_methods GET HEAD;
|
|
|
|
uwsgi_cache_valid 200 12h;
|
|
uwsgi_cache_valid 404 12h;
|
|
}
|
|
}
|