Skip to content

Instantly share code, notes, and snippets.

@dapi
Created December 29, 2019 20:49
Show Gist options
  • Select an option

  • Save dapi/3949f50545d978241ab62296734db8df to your computer and use it in GitHub Desktop.

Select an option

Save dapi/3949f50545d978241ab62296734db8df to your computer and use it in GitHub Desktop.
https://<%= domain %>:444 https://*.<%= domain %>:444 {
log /home/wwwkiiiosk/kiiiosk.store/shared/log/<%= domain %>_access.log
errors /home/wwwkiiiosk/kiiiosk.store/shared/log/<%= domain %>_error.log
gzip
tls <%= cert_file %> <%= key_file %> {
max_certs 2
}
header / -Server
root /home/wwwkiiiosk/kiiiosk.store/current/public
rewrite {
if {path} is /
to /proxy/{uri}
}
rewrite {
to {path} /proxy/{uri}
}
proxy /proxy unix:///home/wwwkiiiosk/kiiiosk.store/shared/tmp/sockets/puma.sock {
except /assets
without /proxy
transparent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment