Home Forums Getting Started (Software) uploading courtesy tones doesn't work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1374

    Actually, it appears all I needed to do was place the file in /usr/share/openrepeater/sounds/courtesy_tones/ and then refresh the Courtesy Tones section on the page.

    It finds it, I can select it, and it shows “active” but the active tone is the previous tone I had selected before the change. :/

    -jre

    #1379
    Richard, N4CNR
    Forum Moderator

    ok found the issue and fixed it in the install script . and will get it fixed in the next img.

    in the /etc/nginx/sites-avaible/openrepeater
    add these to lines like this

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    server{
    listen 443;
    listen [::]:443 default_server ipv6only=on;

    include snippets/snakeoil.conf;
    ssl on;

    root /var/www/openrepeater;

    index index.php;

    server_name $gui_name;

    location / {
    try_files \$uri \$uri/ =404;
    }

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    save it and the sevice nginx restart and it will be fixed

    #1380
    Richard, N4CNR
    Forum Moderator

    Let me know if this fixes your upload issue

    #1381

    My file looked a little different than the order of lines you presented above.

    Almost everything was identical, except:
    location / {
    try_files $uri $uri/ =404;
    }

    I changed mine to what you suggested:
    location / {
    try_files \$uri \$uri/ =404;
    }

    to be safe I just rebooted the RPi.

    The web service fails to start completely now.
    nginx shows running, but nothing on the page loads correctly.

    I removed the backslashes and restarted nginx using “service nginx restart”

    Things working again.
    Here is the file, please let me know what needs modifying:

    ///

    server{
    listen 127.0.0.1:80;
    server_name 127.0.0.1;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    root /var/www/openrepeater;
    index index.php;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }
    server{
    listen 443;
    listen [::]:443 default_server ipv6only=on;

    include snippets/snakeoil.conf;
    ssl on;

    root /var/www/openrepeater;

    index index.php;

    server_name openrepeater;

    location / {
    try_files $uri $uri/ / =404;
    }

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME /var/www/openrepeater/$fastcgi_script_name;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }

    ///

    Thanks!
    73
    Joe N8CN

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘uploading courtesy tones doesn't work’ is closed to new replies.