H2-invent / jitsi-admin

Organize and fully controll your jitsi meet meetings. Make your meeting secure and be sure that only you and your fellows can join your meeting.
https://meetling.de
GNU Affero General Public License v3.0
133 stars 48 forks source link

Help with nginx #190

Closed timowevel1 closed 3 years ago

timowevel1 commented 3 years ago

Hello!

I try to use nginx instead of Apache2 but I run into some issues. I also follwed the steps of another issue, all php extensions are installed, php-fpm is configured with nginx. The project has an .htaccess file which has to be converted probably because when I set my public folder as root and index index.php, I get a 404.

"/var/www/jitsi-admin/public/room/dashboard" failed (2: No such file or directory),

Has anyone a nginx config which works?

Thanks.

Meriemi-git commented 3 years ago

Hi ! I have the same problem, Jitsi use nginx by default so it will be really appreciate to have the equivalent configuration.

Thanks.

holzi1005 commented 3 years ago

Hi @timowevel03 @Meriemi-git you can use a normal Symfony 5 php-fpm config to get it running with nginx.

server {
   server_name your-server-ip;
   root /var/www/jitsi-admin/public;
   location / {
       try_files $uri /index.php$is_args$args;
   }
   location ~ ^/index\.php(/|$) {
       fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
       fastcgi_split_path_info ^(.+\.php)(/.*)$;
       include fastcgi_params;
       fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
       fastcgi_param DOCUMENT_ROOT $realpath_root;
       internal;
   }
   location ~ \.php$ {
       return 404;
   }
   error_log /var/log/nginx/symfony_error.log;
   access_log /var/log/nginx/symfony_access.log;
}

read more here: https://www.howtoforge.com/how-to-setup-symfony-5-framework-on-debian-10/

timowevel1 commented 3 years ago

Thank you, I will give it a try!

timowevel1 commented 3 years ago

Hi ! I have the same problem, Jitsi use nginx by default so it will be really appreciate to have the equivalent configuration.

Thanks.

See his answer, works like a charm. Thanks @holema !