6. Leverage File Service S3 for on-premises storage¶
SystemLink File Service allows you to configure and use the Amazon S3 cloud storage instead of a file share. The File Service will also work with MinIO, a server-side software storage stack that is compatible with Amazon S3.
You can configure and use an on-premises MinIO server. Due to limitations, however, connecting to GCS or Azure using the MinIO gateway is unsupported.
To use MinIO with SystemLink, you need SystemLink version 2020 R3 or later.
To use MinIO as a storage provider, set up the MinIO server on a system that you would like to upload files to. This can be the same machine as the SystemLink server or your own dedicated server. Then, configure the File Service to use that server.
6.1 Running MinIO server¶
Download the server application from the MinIO website.
Since MinIO discourages use of the default credentials, you should change the access key and secret key. To do this, define the environment variables
Run the following command to start the server with individual access and secret keys:
set MINIO_ACCESS_KEY=YourAccessKey set MINIO_SECRET_KEY=YourSecretKey minio server C:\minio
When starting the MinIO server for the first time, use a web browser and navigate to the URL that the command line prints out. Create a bucket by clicking the
+button in the right bottom corner.
Keep the command line open to keep the MinIO server running.
For detailed information on how to run the server, follow the instructions from the MinIO Quickstart guide.
6.2 Configuring File Service¶
Follow the instructions from the documentation on uploading files to S3 to configure the File Service.
a) Set the access key and secret key you chose when starting the MinIO server.
b) Apply a valid bucket region. You can use any valid Amazon S3 region, like
c) Set the bucket name you created.
Add two additional settings to the JSON configuration file at
S3BackEndServiceUrl: Set this value to ip:port of your MinIO server. You can obtain that from the MinIO output in your command line.
S3ForcePathStyle: Set this value to
You can paste the example code below into the config file and replace the placeholders with your actual values.
"UseS3BackEnd" : "True", "S3BackEndBucketRegion" : "us-east-1", "S3BackEndBucketName" : "<YourBucket>", "S3BackEndAccessKeyId" : "<YourAccessKey>", "S3BackEndSecretKey" : "<YourSecretKey>", "S3BackEndFolderName" : "", "S3BackEndServiceUrl" : "<YourServerIP>", "S3ForcePathStyle" : "True"
In the NI SystemLink Server Configuration dialog, go to the NI SystemLink Service Manager tab and click Restart to apply the settings you made in the JSON file.