Jump to content

Markus Jung

Clients
  • Posts

    254
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Markus Jung reacted to Marc Stridgen for a guide, Configuring Amazon S3   
    S3 is a reliable, scalable cloud storage service provided by Amazons AWS platform. Using AWS, for some, may be a cost effective and faster way to store data outside of your usual hosting environment.
    The following guide shows how to set up S3, alongside your Invision Community setup. Note that this guide is correct at the time of writing, and screens may vary from time to time on the AWS console. If you have not set one up already, please first of all ensure you have created an amazon AWS account. You can do this at the following location. (If asked, please ensure you select to use the new management console)

    https://portal.aws.amazon.com/gp/aws/developer/registration/index.html
    Creating an S3 bucket
    When you first log into AWS, you will need to add an S3 storage service to your account. Using the search box provided, type in S3, and select the S3 service

    Finding S3 in AWS
    Once you have selected the S3 service, you will be able to create a new S3 'Bucket'. A bucket is simply an area where you will store your data, within the S3 service. Click on create bucket to get started with its creation.
     

    Create a New Bucket
    On the first screen you will be asked for a bucket name, and a region. Choose the region which is closest to the majority of your users, and give your bucket a name. The name can be anything you wish. In this example I have used 'myinvisionbucket'

    Choosing Name and Region
    Once you have added the name and chosen your name, select "ACLs enabled", as this is required for the invision applications to function correctly. 

    Enabling ACLs
     
    As your items are Accessible on the web, you need to enable public access. Deselect the blocking options, as shown here, and select the checkbox to confirm

    Ensuring Public Access
     
    Finally, select "Create bucket" to create the new S3 bucket you will be using on your site
    Creating Credentials
    Before we can go ahead an set up the storage method in our admin CP, we need to create a set of credentials to use with the S3 bucket. In order to do this, you need to visit the Identity and Access Management (IAM) settings page of your AWS account. You can find a direct link to this here

    https://console.aws.amazon.com/iam/
    Once here, we need to first create a group which has full access to your S3 location. Select Access Management -> Groups from the menu on the left. Then Click on "Create New Group"

    Creating a Group
    Give it a group name, and then click next step. You will then be given a list of items to select from. Search for S3, click the checkbox at the side of "AmazonS3FullAccess" and click next.

    Policy Selection
    You can now click on create group, which will take you back to the first page. On the left, you now need to click on users, and click "Add User"

    Create User
    Give the user a name, select "Acccess Key ID - Programmatic Access" then click "Next: Permissions"

    User Setup Screen
    On the next screen you will see the name of the group you previously created.

    Select Group
    Click the checkbox for this and Click "Next: Tags", then "Next: Review" and finally "Create User"

    Here you can see your Access ID, and Secret Access Key (click show). Copy these out somewhere so that you have these in the next steps.
     
    Setting the storage method
    In order to set up the new storage method, visit the following location within your Admin CP

    System -> Overview -> Files -> Storage Settings -> Configurations
    Once in this location, select to create a new storage method

    Creating New Storage Method
    Once you have done this, select "Amazon S3" from the storage method options at the top of the page. We then need to set up an access key and add the information into your Admin CP as we go. The items in the image below are numbered corresponding to the descriptions below

    Storage Method Options
    The first item you need to add is a bucket name. This is the Bucket Name you used in the first step of this guide. In our example case, we used myinvisionbucket.
      The endpoint will be different depending on what you have set up as your region in previous steps. The link below this item will take you to the AWS help guides where you can find the end point name. First of all find this in the list. I have used Europe (Ireland), and therefore I need eu-west-1 for part of my endpoint URL



    The 'Endpoint' you will enter is the following, where {yourRegion} is replaced with the region name you got above.

    s3.{yourRegion}.amazonaws.com

    So in our scenario, we will be using s3.eu-west-1.amazonaws.com
      The 3rd and final part of setting up the storage method, is to enter the access key and secret. These are the values you copied from creating your user in the previous stage of this guide. 
      Choosing what to store
    Now that you have created a new storage method connected to your S3 bucket, you can choose what you wish to store in amazon S3. Go to the following location to do this
    System -> Overview -> Files -> Storage Settings
    From here, use the dropdown on any of the items to change the storage method to your amazon S3 bucket. If there are items which exist already, a background task will be created to move these to the new location.

    Changing Storage Method
     
     
     
     
     
     
     







  2. Like
    Markus Jung reacted to Rhett for a guide, Using SSL (HTTPS)   
    Community in the Cloud customers can submit a support ticket to request SSL/HTTPS be enabled for your community.
    Applies to self-hosted customers only You will need to obtain an SSL certificate and install it on your server before following these instructions
    To enable SSL/HTTPS for your community, please edit your conf_global.php file, changing 'http' to 'https' in your URL, then save.
    From:
    $INFO['base_url'] = 'http://www.yourdomain.com'; To:
    $INFO['base_url'] = 'https://www.yourdomain.com'; (it's possible that this parameter may be called board_url in your configuration)
     
    Then log into the AdminCP > Support > 'Clear System Caches'. This clears out your cache, and will allow all items to then be linked from HTTPS. 

    Running the support tool
    Please also keep in mind that all advertisements or any code you may have added to the site or theme must be served from https or the cert will show an error for your users. 
     
     
×
×
  • Create New...