-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration values
squarerootfury edited this page Dec 8, 2013
·
11 revisions
Following values are possible in the project configuration:
Following values are written in /path/to/Redundancy/Redundancy.conf. It's recommend to configure your webserver to avoid downloading of the configuration file. Configuration values marked with "[Obsolete]" are not used anymore and will be removed. You don't have to insert them into your program's configuration
- Boolean: 1 - yes; 0 - no
- String: A text
- Numeric: An integer, not numbers like 1,5
The settings with prefix "User_" are controlling settings for each user (globally). Note: Parts of this settings will be moved to individual user settings.
Setting | Description | Default value | Type |
User_Contingent | Sets the default user contingent which is set at the registration process | 20 | Numeric (int) |
User_Default_Role | Sets the default user role which is set at the registration process | 1 | Numeric 0 - Admin 1 - User 2 - System 3 - Guest Use with caution! |
User_Allow_Delete | Sets the option if the user can delete his account over his account details | 0 | Boolean |
User_Registration_AutoDisable | Sets the option if the user account is disabled at registration | 0 | Boolean |
User_Activation_Link_Sender | [obsolete] | "" | String |
User_Activation_Link_Sender_Email | [obsolete] | "" | String |
User_Enable_Recover | Sets the option if the user is allowed to recover his password over email | 0 | Boolean |
User_Recover_Password_Length | The length of the password which is generated at recover | 10 | Numeric (int) |
User_Max_Fails | The number of failed login tries until account is locked | 5 | Numeric (int) |
User_NoLogout_Warning | Determine if a warning will be displayed if the user forgot to log out on another client. | 1 | Boolean |
This settings controlling the way how the programs works.
Setting | Description | Default value | Type |
Enable_register | Enables the user registration over the web interface | 0 | Boolean |
Enable | Enables the Redundancy instance | 1 | Boolean |
Program_Share_Dir | The Path of the Program relative to the domain | [obsolete] | String |
Program_Path | Internal(!) path of the program | /var/www/Redundancy/ | String |
Program_Name_ALT | The displayed program name | Redundancy | String |
Program_Path_Separator | [Obsolete] | [Obsolete] | String |
Program_Display_Icons_if_needed | Display images with a thumbnail (only activate if PHP-GD is active) | 0 | Boolean |
Program_Display_Version | Display program version | 1 | Boolean |
Program_Display_Loadtime | Display the program load time | 1 | Boolean |
Program_Debug | Display errors. Do not use. Really. | 0 | Boolean |
Program_Redirect_Upload | Redirect the user to the uploaded file | 1 | Boolean |
Program_Redirect_NewDir | Redirect the user after creation of a new directory | 1 | Boolean |
Program_Language | The program interface language - value must be existing in /Language/ | en | String |
Api_Enable | Enables the Redundancy API | 0 | Boolean (use with caution!) |
IE_Warning | Display a warning for users of Internet Explorer | 1 | Boolean |
Program_Language | The interface language | "en" | String containing the language code from /Language/{lang}.lng |
Program_Privacy_Mask | Determines if the program masks IP's in the database (not if user is banned!) | 1 | Boolean |
Program_HTTPS_Redirect | Force HTTPS (highly recommended) | 1 | Boolean |
Program_Mime_Use_DataBase | Get the mimetype throught the database instead out of the filesystem | 1 | Boolean |
Program_Enable_Plugins | Determines if the program should load plugins. | 0 | Boolean |
Program_Enable_JQuery | Determines if Redundancy should generate JQuery context menus, messages etc. | 1 | Boolean |
Program_Share_Anonymously | Determines if Redundancy should create anonymouse share links or if the share link should contain the display name | 0 | Boolean |
Program_Enable_Preview | Determines if Redundancy should enable preview features for text, video and audio files | 1 | Boolean |
Program_Max_Displayname_Length | Determines if the maximum displayname length. If a displayname is longer, it will be cropped | 20 | Int |
Program_Storage_Dir | The path to the storage directory | Storage | String |
Program_Snapshots_Dir | The path to the snapshots directory | Snapshots | String |
Program_Temp_Dir | The path to the temp directory | Temp | String |
Program_Embed_GPL_Header | [obsolete] | 1 | Boolean |
Program_Display_Generator_Tag | Determines if a a meta tag containing the generator should be created. | 1 | Boolean |
Program_Enable_Action_Buttons | Enable the action buttons [obsolet] | 1 | Boolean |
Program_Enable_User_Settings | Allow the users to change parts of the settings at the user account settings | 1 | Boolean |
Program_Enable_Web_Administration | Enable or disable the web administration module | 1 | Boolean |
Program_Enable_Logging | Enable or disable the logging of important events | 1 | Boolean |
Program_Share_Link_Length | Get or set the length of the share link | 7 | int |
use_buffer | Enable or disable the buffering (enable if redirection not working) | 1 | Boolean |
Program_Enable_Mail | Enable mail sending. Only enable if accounts are auto disabled. | 1 | Boolean |
Program_Enable_Banning | Enable banning | 1 | Boolean |
Program_Enable_Chart | Enable or disable the generation of charts (for example to show the usage of your storage) | 1 | Boolean |
Program_Enable_ErrorHandler | Enable or disable the global error handling (errors will be inserted into System.log) | 1 | Boolean |
Program_Session_Timeout | Exit the session after a duration of time | -1 (disabled) or a duration in minute | Boolean |
Program_Upload_Module | Determines if the new or the old uploader should be used | upload2 (new) or upload (old) | string |
Program_Enable_Pagination | Determines if the system should use a pagination for large listings | 0 | boolean |
Program_Pagination_Count | The number of results per page if Program_Enable_Pagination is set to 1 | 75 | unsigned int |
Each configuration value _must_ be existing in the configuration file!