- port => '443',
- docroot => false,
- manage_docroot => false,
- ssl => true,
- ssl_cert => "/etc/letsencrypt/live/$web_host/cert.pem",
- ssl_key => "/etc/letsencrypt/live/$web_host/privkey.pem",
- ssl_chain => "/etc/letsencrypt/live/$web_host/chain.pem",
- require => Letsencrypt::Certonly[$web_host],
- additional_includes => "$home/caldance_env",
- directories => [
+ port => '443',
+ docroot => false,
+ manage_docroot => false,
+ ssl => true,
+ ssl_cert => "/etc/letsencrypt/live/$web_host/cert.pem",
+ ssl_key => "/etc/letsencrypt/live/$web_host/privkey.pem",
+ ssl_chain => "/etc/letsencrypt/live/$web_host/chain.pem",
+ require => Letsencrypt::Certonly[$web_host],
+ proxy_preserve_host => true,
+ proxy_pass => [
+ {
+ path => "/",
+ url => "unix:$socket|uwsgi://caldance-app/",
+ reverse_urls => [],
+ no_proxy_uris => [ "/media/", "/static/" ],
+ }
+ ],
+ directories => [