发布时间: 2022-03-20 06:27:00
caddy: 一种类似于轻量nginx吧
非常好玩,文件夹中: caddy 命令, CaddyFile
配置CaddyFile即可。
然后 ./caddy restart 就行。
等同于nginx -s reload
bundle bundle exec rails webpacker:install bundle exec rake assets:precompile RAILS_ENV=production bundle exec rails s -p 3355然后caddy中增加:
homeland.yoursite.com { encode zstd gzip root * /opt/app/homeland/current/public file_server @notStatic { not file } reverse_proxy @notStatic 127.0.0.1:3355 header / { Strict-Transport-Security "max-age=31536000" } }Back