This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Name", | |
"description": "Description", | |
"fields": { | |
"custom_fields": { | |
"type": "nested", | |
"many": false, | |
"schema": { | |
"age": { | |
"type": "integer", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /static { | |
expires 1d; | |
access_log off; | |
log_not_found off; | |
break; | |
} | |
location /media { | |
expires max; | |
access_log off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_cache_path /tmp/cache keys_zone=cache:10m levels=1:2 inactive=600s max_size=100m; | |
server { | |
proxy_cache cache; | |
proxy_cache_valid 200 1s; | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_vary on; | |
gzip_comp_level 8; | |
gzip_proxied any; | |
gzip_min_length 1000; | |
gzip_types | |
# text/html is always compressed by HttpGzipModule | |
text/css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test testeset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const inherits = require('util').inherits, | |
db = require('db'), | |
q = require("q"); | |
function Jobs() | |
{ | |
// Пример с callbackом и типа без лапши |