How to setup direct download links in Seafile Pro?

Have upgraded to Pro edition and direct links became the same way as in screen attached.

How setup direct just so that they can be seen by another user without any Verification?

Just set ENABLE_SHARE_LINK_AUDIT = False In seahub_settings.py

@sdovzhenko have you changed that setting yourself?

The same setting was already set in seahub_settings.py but It doesn’t helped anyway. As far as I understand there must be another one cause audit and PIN request - are different things.

No I have not. Just default settings

Is it maybe set differently in the settings that are configured via the web admin panel?

Did you restart the server after the changed settings?

We use most common admin settings panel.What do you mean?

We have NOT changed non of the settings so that there is no need to restart server - this FALSE setting was already set

The settings that you set in the web admin panel overwrite those from seahub_settings.py - so you should check whether you have ENABLE_SHARE_LINK_AUDIT set to True in the web admin interface.

Thanks now understood ) But I don’t see such setting via web admin interface. I have look through all of the sections including “Settings” and have not find it. Where can I find this one?

As far as i know not all (pro) settings are available online. I would recommend to set this setting in seahub_settings.py and restart your seafile server. That should help.

Set this setting and server has been rebooted. Doesn’t helped

Are there any ideas?..

Could you share your seahub_settings.py? Make sure to remove sensitive content beforehand.

Yes sure

DATABASES = {
    'default': {
       'ENGINE': 'django.db.backends.mysql',
       'NAME': 'seahub-db',
       'USER': 'seafile',
       'PASSWORD': '#########',
       'HOST': '127.0.0.1',
       'PORT': '3306'
   }
}

ENABLE_SYS_ADMIN_VIEW_REPO = True
ENABLE_SHARE_LINK_AUDIT = True

ENABLED_ROLE_PERMISSIONS = {
   'admin': {
       'can_add_repo': True,
       'can_add_group': True,
       'can_view_org': True,
       'can_use_global_address_book': True,
       'can_generate_share_link': True,
       'can_generate_upload_link': True,
       'can_invite_guest': True,
       'can_connect_with_android_clients': True,
       'can_connect_with_ios_clients': True,
       'can_connect_with_desktop_clients': True,
   },
   'default': {
       'can_add_repo': True,
       'can_add_group': True,
       'can_view_org': True,
       'can_use_global_address_book': True,
       'can_generate_share_link': False,
       'can_generate_upload_link': False,
       'can_invite_guest': False,
       'can_connect_with_android_clients': True,
       'can_connect_with_ios_clients': True,
       'can_connect_with_desktop_clients': True,
   },
   'guest': {
       'can_add_repo': False,
       'can_add_group': False,
       'can_view_org': True,
       'can_use_global_address_book': False,
       'can_generate_share_link': False,
       'can_generate_upload_link': False,
       'can_invite_guest': False,
       'can_connect_with_android_clients': False,
       'can_connect_with_ios_clients': False,
       'can_connect_with_desktop_clients': False,
   }
}

??? Shouldn’t you set that to False?

yes. That line enables the behavior in the screenshot above.

my admin was misunderstood :unamused:

We have changed it and everything is ok.

Thanks everyone!

We have reinstalled Seafile and now there is no such point for admins - they can not generate direct links but just share them with Seafile users. Screenshot is attached.

Actual seahub_settings.py below

# -*- coding: utf-8 -*-
SECRET_KEY = "f#b=u*s&o_c!9hbny$np(=82*)9vr9wn$1nq0%vny#pfd675%s"

DATABASES = {
    'default': {
       'ENGINE': 'django.db.backends.mysql',
       'NAME': 'seahub_db',
       'USER': 'seafile',
       'PASSWORD': '',
       'HOST': '127.0.0.1',
       'PORT': '3306'
   }
}


CACHES = {
   'default': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
   'LOCATION': '127.0.0.1:11211',
   }
}

EMAIL_USE_TLS = True
EMAIL_HOST = ''
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

TIME_ZONE                           = 'Europe/Berlin'
SITE_BASE                           = 'https://127.0.1.1'
SITE_NAME                           = 'Seafile Server'
SITE_TITLE                          = 'Seafile Server'
SITE_ROOT                           = '/'
ENABLE_SIGNUP                       = False
ACTIVATE_AFTER_REGISTRATION         = False
SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER  = True
SEND_EMAIL_ON_RESETTING_USER_PASSWD = True
CLOUD_MODE                          = False
FILE_PREVIEW_MAX_SIZE               = 30 * 1024 * 1024
SESSION_COOKIE_AGE                  = 60 * 60 * 24 * 7 * 2
SESSION_SAVE_EVERY_REQUEST          = False
SESSION_EXPIRE_AT_BROWSER_CLOSE     = False

#FILE_SERVER_ROOT                    = 'https://127.0.1.1/seafhttp'
FILE_SERVER_ROOT                    = 'https:///seafhttp'

ENABLE_SYS_ADMIN_VIEW_REPO = True
ENABLE_SHARE_LINK_AUDIT = False

ENABLED_ROLE_PERMISSIONS = {
   'admin': {
       'can_add_repo': True,
       'can_add_group': True,
       'can_view_org': True,
       'can_use_global_address_book': True,
       'can_generate_share_link': True,
       'can_generate_upload_link': True,
       'can_invite_guest': True,
       'can_connect_with_android_clients': True,
       'can_connect_with_ios_clients': True,
       'can_connect_with_desktop_clients': True,
   },
   'default': {
       'can_add_repo': True,
       'can_add_group': True,
       'can_view_org': True,
       'can_use_global_address_book': True,
       'can_generate_share_link': False,
       'can_generate_upload_link': False,
       'can_invite_guest': False,
       'can_connect_with_android_clients': True,
       'can_connect_with_ios_clients': True,
       'can_connect_with_desktop_clients': True,
   },
   'guest': {
       'can_add_repo': False,
       'can_add_group': False,
       'can_view_org': True,
       'can_use_global_address_book': False,
       'can_generate_share_link': False,
       'can_generate_upload_link': False,
       'can_invite_guest': False,
       'can_connect_with_android_clients': False,
       'can_connect_with_ios_clients': False,
       'can_connect_with_desktop_clients': False,
   }
}