#
# /etc/nginx/vhosts/limlog.sloger.info.conf
#
upstream limlog {
server unix:///tmp/limlog.sock;
}
server {
listen 80;
server_name limlog.sloger.info;
root /srv/http/limlog.sloger.info/public;
access_log /var/log/nginx/limlog-access.log;
error_log /var/log/nginx/limlog-error.log info;
location / {
expires max;
add_header Cache-Control public;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://limlog;
}
location ~ ^/assets/ {
expires 1y;
gzip_static on;
add_header ETag "";
add_header Cache-Control public;
break;
}
}
#!/usr/bin/env ruby -w # # config/puma.rb # rails_env = ENV['RAILS_ENV'] || 'development' threads 4, 4 bind 'unix:///tmp/limlog.sock' pidfile '/tmp/limlog.pid' state_path '/tmp/limlog.state' activate_control_app
# Disable Rails's static asset server (Apache or nginx will already do this). config.serve_static_assets = true
# Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
protect_from_forgery
# 使用 rake secret 生成 key, 然后粘贴在 = 后面 export SECRET_KEY_BASE= # 下面可以 export 各种环境变量
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有