2024-04-09 11:30:13 +02:00
{
PackageName: 'Nfsshare',
prefix: 'nfs',
MenuHeading: 'Network',
MenuDescription: 'NFS data share',
MenuNavigation: '2000 400',
2024-04-24 17:09:23 +02:00
firstPanel: 'TABLE',
2024-04-09 11:30:13 +02:00
html: [
{
Name: 'params',
route: 'PARAMS',
Header: 'NFS Share Contrib',
SubHeader: 'Manage NFS Ibay settings:',
2024-04-24 17:09:23 +02:00
Paragraph1: 'These parameters will be effective only if the share is enabled. The share is in /home/e-smith/files/ibays//files',
2024-04-09 11:30:13 +02:00
Input1: {
Name: 'IbayName',
Type: 'Text',
Label: 'Information Bay name',
Value: 'stash("IbayName")',
},
Input2: {
Name: 'ShareOwnerGrp',
Type: 'Selection',
Label: 'Share owner Group',
Value: [
'Write = admin, Read = group',
'Write = group, Read = everyone',
'Write = group, Read = group',
],
Default: 0,
},
Input3: {
Name: 'EnableNFSshare',
Type: 'Selection',
Label: 'Enable the NFS Share',
Value: [
'Disabled',
'Enabled',
],
Default: 0,
},
Input4: {
Name: 'ShareOnLocalNetwork',
Type: 'Selection',
Label: 'EnableShare on local network',
Value: [
'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',
2024-04-09 16:36:30 +02:00
Label: 'NFS Client(s) allowed',
rows : 5
2024-04-09 11:30:13 +02:00
},
Input6: {
Name: 'FileSystemPermissions',
Type: 'Selection',
Label: 'File system permissions',
Value: [
'Read only',
'Read and Write',
],
Default: 0,
},
Input7: {
Name: 'WriteAsync',
Type: 'Selection',
2024-04-24 17:09:23 +02:00
Label: 'Write (a)synchronously',
2024-04-09 11:30:13 +02:00
Value: [
'Synchronous',
'Asynchronous',
],
},
Input8: {
Name: 'DelayWrite',
Type: 'Selection',
2024-04-24 17:09:23 +02:00
Label: 'Delays the disk writing',
2024-04-09 11:30:13 +02:00
Value: [
'Write delay',
'No write delay',
],
Default: 1,
},
Input9: {
Name: 'Squash',
Type: 'Selection',
2024-04-24 17:09:23 +02:00
Label: 'Squash the power of users',
2024-04-09 11:30:13 +02:00
Value: [
'All users squash',
'No root squash',
'root squash',
],
Default: 2,
},
Input10: {
Name: 'BrowseParents',
Type: 'Selection',
Label: 'Browse the parent folders',
Value: [
'Hide folder',
'Show folder',
],
Default: 0,
},
Input11: {
Name: 'SecurePorts',
Type: 'Selection',
2024-04-24 17:09:23 +02:00
Label: 'Requests on secure ports',
2024-04-09 11:30:13 +02:00
Value: [
'Secure',
'Insecure',
],
Default: 0,
},
2024-04-24 17:09:23 +02:00
Paragraph3: 'Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank',
2024-04-09 11:30:13 +02:00
Input12: {
Name: 'SetUID',
Type: 'Textinput',
Label: 'Set the UID.',
},
Input13: {
Name: 'SetGID',
Type: 'Textinput',
Label: 'Set the GID.',
},
Submit: 'Save',
},
{
2024-04-24 17:09:23 +02:00
Name: 'select_ibay',
route:"TABLE",
Header: 'NFS Share Contrib',
SubHeader: 'Manage NFS Ibay settings:',
Table1: {
Type:"Table",
2024-04-25 17:23:07 +02:00
TableControl:"ibays",
2024-04-24 17:09:23 +02:00
TopHeadings: ['Name','Description','Nfs status', 'Action'],
Columns: ['Name','Description','flag','PARAMS']
}
}
]
2024-04-09 11:30:13 +02:00
}