2024-09-12 19:54:38 +02:00
{
PackageName: 'Nfsshare',
prefix: 'nfs',
MenuHeading: 'Network',
MenuDescription: 'NFS data share',
MenuNavigation: '2000 400',
firstPanel: 'TABLE',
signalEvent: 'smeserver-nfsshare-update',
2024-09-12 20:37:27 +02:00
html: [ {
2024-09-12 19:54:38 +02:00
Name: 'params',
route: 'PARAMS',
Header: 'NFS Share Contrib',
SubHeader: 'Manage NFS Ibay settings:',
Paragraph1: 'These parameters will be effective only if the share is enabled. The share is in /home/e-smith/files/ibays//files',
Input1: {
Name: 'IbayName',
Type: 'Text',
Label: 'Information Bay name',
Value: 'stash("IbayName")',
},
Input2: {
Name: 'ShareOwnerGrp',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Share owner Group',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Write = admin, Read = group',
'Write = group, Read = everyone',
'Write = group, Read = group',
],
Default: 0,
},
Input3: {
Name: 'EnableNFSshare',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Enable the NFS Share',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Disabled',
'Enabled',
],
Default: 0,
},
Input4: {
Name: 'ShareOnLocalNetwork',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'EnableShare on local network',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Disabled',
'Enabled',
],
Default: 0,
},
Paragraph2: 'For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s).',
Input5: {
Name: 'NFSClientsAllowed',
Type: 'Textarea',
Label: 'NFS Client(s) allowed',
rows : 5
},
Input6: {
Name: 'FileSystemPermissions',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'File system permissions',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Read only',
'Read and Write',
],
Default: 0,
},
Input7: {
Name: 'WriteAsync',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Write (a)synchronously',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Synchronous',
'Asynchronous',
],
},
Input8: {
Name: 'DelayWrite',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Delays the disk writing',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Write delay',
'No write delay',
],
Default: 1,
},
Input9: {
Name: 'Squash',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Squash the power of users',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'All users squash',
'No root squash',
'root squash',
],
Default: 2,
},
Input10: {
Name: 'BrowseParents',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Browse the parent folders',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Hide folder',
'Show folder',
],
Default: 0,
},
Input11: {
Name: 'SecurePorts',
2024-10-18 20:01:59 +02:00
Type: 'Select',
2024-09-12 19:54:38 +02:00
Label: 'Requests on secure ports',
2024-10-19 19:58:55 +02:00
Options: [
2024-09-12 19:54:38 +02:00
'Secure',
'Insecure',
],
Default: 0,
},
Paragraph3: 'Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank',
Input12: {
Name: 'SetUID',
Type: 'Textinput',
Label: 'Set the UID.',
},
Input13: {
Name: 'SetGID',
Type: 'Textinput',
Label: 'Set the GID.',
},
Submit: 'Save',
},
{
Name: 'select_ibay',
route:'TABLE',
Header: 'NFS Share Contrib',
SubHeader: 'Manage NFS Ibay settings:',
Nextpanel: 'PARAMS',
Table1: {
Type:'Table',
TableControl:"ibays",
TopHeadings: ['Name','Description','Nfs status', 'Action'],
Columns: ['Name','Description','flag','Modify']
}
}
2024-09-12 20:37:27 +02:00
]
2024-10-18 20:01:59 +02:00
}