Une tentative de paquetage d'Invidious pour YunoHost
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
922B

  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. # Path to source
  4. alias __FINALPATH__/ ;
  5. # Force usage of https
  6. if ($scheme = http) {
  7. rewrite ^ https://$server_name$request_uri? permanent;
  8. }
  9. ### Example PHP configuration (remove it if not used)
  10. index index.php;
  11. # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
  12. #client_max_body_size 50M;
  13. try_files $uri $uri/ index.php;
  14. location ~ [^/]\.php(/|$) {
  15. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  16. fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
  17. fastcgi_index index.php;
  18. include fastcgi_params;
  19. fastcgi_param REMOTE_USER $remote_user;
  20. fastcgi_param PATH_INFO $fastcgi_path_info;
  21. fastcgi_param SCRIPT_FILENAME $request_filename;
  22. }
  23. ### End of PHP configuration part
  24. # Include SSOWAT user panel.
  25. include conf.d/yunohost_panel.conf.inc;
  26. }