YunoHost-Apps / rustdesk-server_ynh

RustDesk package for YunoHost
https://rustdesk.com/
GNU General Public License v3.0
5 stars 3 forks source link

nginx conf missing after install #18

Open trendless opened 6 months ago

trendless commented 6 months ago

Describe the bug

Default NGINX welcome page after install to https://$DOMAIN

Context

Steps to reproduce

Expected behavior

Logs

SveDec commented 4 months ago

Hello,

Same thing here. If i understand correctly, the web GUI is only available in the pro (paid) version (see their FAQ), but it would be nice to have a minimal home page instead of the default nginx welcome page.

To achieve that, I put

  1. a small index.html page in the rustdesk-server directory in /var/www,
  2. and the following modified Yunohost my_webapp nginx conf in /etc/nginx/conf.d/$DOMAIN.d (replace $INSTALL_DIR with the rustdesk-server directory name) :
location / {

    # Path to source
    alias /var/www/$INSTALL_DIR/;

    # Default indexes and catch-all
    index index.html index.php;
    try_files $uri $uri/ /index.php?$args;

    # Prevent useless logs
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
    location = /robots.txt {
        log_not_found off;
        access_log off;
    }

    # Deny access to all files except index
    location = / {
    }
    location = /index.html {
    }
    location ^~ / {
        deny all;
    }
}

Thanks for packaging the app though !