标签:meteor

发表于
meteor中settings.json位于程序的根目录下,里面存放一些配置信息,比如: { "magicPizzaService": "Our1234API5678Key" } 怎么用呢? var secretPizzaAccessCode = Meteor.settings.magicPizzaService; 如果有不同的环境,比如开发环境,生产环境,同一个变量的值是不同的,那该怎么定义呢? { "public": { "imARidiculousHumanBeing": "butAtLeastImClean" }, "private": { "hackTheGibson": "keyboardCoWbOyS" }, "imStillServerOnly": "soDontPanic" } 用法: var ridiculous = Meteor.settings.public.imARidiculousHumanBeing; // returns "butAtLeastImClean" on the client. var cowboys = Meteor.settings.private.hackTheGibson; // returns "keyboardCoWbOyS" on the server. var dontPanic...
发表于
nginx的反向代理: server_tokens off; # for security-by-obscurity: stop displaying nginx version # this section is needed to proxy web-socket connections map $http_upgrade $connection_upgrade { default upgrade; '' close; } # HTTP server { listen 80 default_server; # if this is not a default server, remove "default_server" listen [::]:80 default_server ipv6only=on; root...