mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
18 lines
438 B
Nginx Configuration File
18 lines
438 B
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
location __PATH__/ {
|
|
|
|
# Path to source
|
|
alias __FINALPATH__/ ;
|
|
|
|
# Force usage of https
|
|
if ($scheme = http) {
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
}
|
|
|
|
include uwsgi_params;
|
|
# Needed for long running operations in admin interface
|
|
uwsgi_read_timeout 3600;
|
|
uwsgi_param SCRIPT_NAME __PATH__;
|
|
uwsgi_modifier1 30;
|
|
uwsgi_pass unix:///run/__NAME__/app.socket;
|
|
}
|