Set-NspWebPortalSettings

Use this cmdlet to configure the file location for large files that you send via NoSpamProxy Large Files. You can use either a local storage location, a network storage location or Amazon Simple Storage Service (Amazon S3) as the file storage location.

NOTE: To use Amazon S3, you must have a valid contract for the use of this service.

General syntax

Set-NspWebPortalSettings -LocalDirectory [<CommonParameters>]

Set-NspWebPortalSettings -S3Bucket <string> -Region <string> -IAM [<CommonParameters>]

Set-NspWebPortalSettings -S3Bucket <string> -Region <string> -AccessKey <string> -SecretKey <securestring> [<CommonParameters>]

Description

Used to configure the file location for large files sent via NoSpamProxy Large Files.

Procedure

If you want to use a local file storage location

Enter the following command on the command line:

Set-NspWebPortalSettings -LocalDirectory

By default, the files are stored under C:\Program Files\NoSpamProxy\Web Portal\App_Data\Files\. You can adjust this path under Configuration > NoSpamProxy Components > Web Portal.

If you want to use Amazon S3 as a storage location

Access via AWS Identity and Access Management (IAM)

Enter the following command on the command line:

Set-NspWebPortalSettings -S3Bucket <NameOfTheS3Bucket> -Region <TheRegion> -IAM

NOTE: For access via IAM, you need access rights for the S3 bucket used. You configure these access rights in the EC2 instance you are using.

Access via Access Key and Secret Key

Enter the following command on the command line:

Set-NspWebPortalSettings -S3Bucket <NameOfTheS3Bucket> -Region <TheRegion> -AccessKey <YourAccessKey> -SecretKey <YourSecretKey>

Parameters

-AccessKey <string>

The access key for accessing your S3 bucket. You can find detailed information in the AWS documentation.

-IAM <>

AWS Identity and Access Management (IAM) is a web service used to control access to AWS resources. You can find detailed information in the AWS documentation.

-LocalDirectory <>

Determines whether you use a local file location.

-Region <string>

The region of your S3 bucket.

-S3Bucket <string>

The name of your S3 Bucket.

-SecretKey <securestring>

The secret key for accessing your S3 bucket. You can find detailed information in the AWS documentation.