1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/decidim_ynh.git synced 2024-09-03 18:26:00 +02:00
decidim_ynh/conf/nginx.conf

24 lines
522 B
Nginx Configuration File
Raw Permalink Normal View History

2022-04-30 21:19:50 +02:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
2024-06-06 12:01:28 +02:00
alias __INSTALL_DIR__/live/public/;
2022-04-30 21:19:50 +02:00
2022-05-05 16:47:03 +02:00
client_max_body_size 32M;
2022-04-30 21:19:50 +02:00
2022-05-05 16:47:03 +02:00
passenger_enabled on;
passenger_ruby /opt/rbenv/shims/ruby;
passenger_app_env production;
2022-04-30 21:19:50 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
2022-05-05 16:47:03 +02:00
location __PATH__/decidim-packs/ {
# Path to source
2024-06-06 12:01:28 +02:00
alias __INSTALL_DIR__/live/public/decidim-packs/;
2022-05-05 16:47:03 +02:00
gzip_static on;
expires max;
more_set_headers "Cache-Control: public";
}