mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
by welefen
This commit is contained in:
parent
8b534c8745
commit
cdc48468a8
@ -5,7 +5,6 @@ module.exports = Action(function(){
|
||||
},
|
||||
indexAction: function(){
|
||||
var cookie = this.cookie("name");
|
||||
//this.redirect("http://www.baidu.com");
|
||||
this.assign({
|
||||
name: "welefen"
|
||||
})
|
||||
|
||||
33
nginx.conf
Normal file
33
nginx.conf
Normal file
@ -0,0 +1,33 @@
|
||||
log_format thinkjs.ueapp.com '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" $http_x_forwarded_for';
|
||||
server
|
||||
{
|
||||
listen 80;
|
||||
server_name thinkjs.ueapp.com;
|
||||
index index.js index.html index.htm;
|
||||
root /home/welefen/www/thinkjs.ueapp.com/;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
|
||||
proxy_pass http://127.0.0.1:8360/;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$
|
||||
{
|
||||
expires 1000d;
|
||||
}
|
||||
|
||||
location ~ .*\.(js|css)$
|
||||
{
|
||||
expires 1000d;
|
||||
}
|
||||
|
||||
|
||||
access_log /home/welefen/logs/thinkjs.ueapp.com.log thinkjs.ueapp.com;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user