Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save harshavardhana/f05b60fe6f96803743f38bea4b565bbf to your computer and use it in GitHub Desktop.
Save harshavardhana/f05b60fe6f96803743f38bea4b565bbf to your computer and use it in GitHub Desktop.

Revisions

  1. harshavardhana revised this gist Nov 15, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ Bucket created successfully ‘myminio/static’.
    #### 5. Make bucket public to host/access static content.

    ```
    $ mc policy wnload myminio/static
    $ mc anonymous download myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’
    ```

  2. harshavardhana revised this gist Dec 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ Bucket created successfully ‘myminio/static’.
    #### 5. Make bucket public to host/access static content.

    ```
    $ mc policy ownload myminio/static
    $ mc policy wnload myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’
    ```

  3. harshavardhana revised this gist Dec 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ Bucket created successfully ‘myminio/static’.
    #### 5. Make bucket public to host/access static content.

    ```
    $ mc policy download myminio/static
    $ mc policy ownload myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’
    ```

  4. harshavardhana revised this gist Jun 11, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -53,4 +53,4 @@ server {
    $ sudo service nginx reload
    ```

    8. Open your browser and type http://localhost
    #### 8. Open your browser and type http://localhost
  5. harshavardhana renamed this gist Jun 11, 2019. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions Nginx-minio-static.md → nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,23 @@
    ## How to configure static website using Nginx with MinIO ?

    ### 1. Install [nginx](http://nginx.org/)
    ### 2. Install [minio](https://github.com/minio/minio)
    3. Install [mc client](https://github.com/minio/mc)
    4. Create a bucket:
    #### 1. Install [nginx](http://nginx.org/)
    #### 2. Install [minio](https://github.com/minio/minio)
    #### 3. Install [mc client](https://github.com/minio/mc)
    #### 4. Create a bucket:

    ```
    $ mc mb myminio/static
    Bucket created successfully ‘myminio/static’.
    ```

    5. Make bucket public to host/access static content.
    #### 5. Make bucket public to host/access static content.

    ```
    $ mc policy download myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’
    ```

    6. Upload a sample static HTML site to minio bucket, in my case i used example: http://www.oswd.org/user/profile/id/12362/
    #### 6. Upload a sample static HTML site to minio bucket, in my case i used example: http://www.oswd.org/user/profile/id/12362/

    ```
    $ mc cp -r terrafirma/ myminio/static
    @@ -34,7 +34,7 @@ $ mc ls myminio/static
    [2017-03-22 18:24:03 IST] 0B images/
    ```

    7. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.
    #### 7. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.

    Remove default configuration and replace it with the below. Please change as per your local setup.

  6. harshavardhana revised this gist Jun 11, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## How to configure static website using Nginx with MinIO ?

    1. Install [nginx](http://nginx.org/)
    2. Install [minio](https://github.com/minio/minio)
    ### 1. Install [nginx](http://nginx.org/)
    ### 2. Install [minio](https://github.com/minio/minio)
    3. Install [mc client](https://github.com/minio/mc)
    4. Create a bucket:

  7. harshavardhana revised this gist Jun 11, 2019. No changes.
  8. harshavardhana revised this gist Jun 11, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## How to configure static website using Nginx with ?
    ## How to configure static website using Nginx with MinIO ?

    1. Install [nginx](http://nginx.org/)
    2. Install [minio](https://github.com/minio/minio)
  9. harshavardhana revised this gist Jun 11, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Ubuntu 16.04
    ## How to configure static website using Nginx with ?

    1. Install [nginx](http://nginx.org/)
    2. Install [minio](https://github.com/minio/minio)
  10. harshavardhana revised this gist Jun 11, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Nginx-minio-static.md
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ $ mc ls myminio/static
    [2017-03-22 18:24:03 IST] 0B images/
    ```

    6. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.
    7. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.

    Remove default configuration and replace it with the below. Please change as per your local setup.

    @@ -53,4 +53,4 @@ server {
    $ sudo service nginx reload
    ```

    7. Open your browser and type http://localhost
    8. Open your browser and type http://localhost
  11. harshavardhana renamed this gist Nov 26, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  12. harshavardhana renamed this gist Nov 26, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  13. harshavardhana revised this gist Oct 24, 2017. 1 changed file with 2 additions and 7 deletions.
    9 changes: 2 additions & 7 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -50,12 +50,7 @@ server {
    }
    }
    $ sudo service nginx relaod
    $ sudo service nginx reload
    ```

    7. Open your browser and typel localhost [as per my example]
    ```
    Screenshot: https://play.minio.io:9000/atuljha/minionginxstatic.png
    ```


    7. Open your browser and type http://localhost
  14. harshavardhana revised this gist Jul 11, 2017. No changes.
  15. harshavardhana revised this gist Jul 11, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    ## Ubuntu 16.04

    1. Install nginx : nginx version: nginx/1.10.0 (Ubuntu)
    2. Install Minio: Follow https://github.com/minio/minio
    3. Install MC client: Follow https://github.com/minio/mc
    1. Install [nginx](http://nginx.org/)
    2. Install [minio](https://github.com/minio/minio)
    3. Install [mc client](https://github.com/minio/mc)
    4. Create a bucket:

    ```
  16. harshavardhana revised this gist Jun 1, 2017. 1 changed file with 15 additions and 4 deletions.
    19 changes: 15 additions & 4 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,44 @@
    OS: Ubuntu 16.04
    ## Ubuntu 16.04

    1. Install nginx : nginx version: nginx/1.10.0 (Ubuntu)
    2. Install Minio: Follow https://github.com/minio/minio
    3. Install MC client: Follow https://github.com/minio/mc
    4. Create a bucket:

    ```
    $ mc mb myminio/static
    Bucket created successfully ‘myminio/static’.
    ```

    5. Make bucket public to host/access static content.

    ```
    $ mc policy download myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’
    ```

    6. Upload a sample static HTML site to minio bucket, in my case i used example: http://www.oswd.org/user/profile/id/12362/

    ```
    $ mc cp -r terrafirma/ myminio/static
    ...ma/readme.txt: 39.37 KB / 39.37 KB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 31.94 KB/s 1s
    ```

    Note: this is how my bucket content appears to me currently.

    ```
    $ mc ls myminio/static
    [2017-03-22 18:20:52 IST] 4.7KiB default.css
    [2017-03-22 18:20:54 IST] 5.4KiB index.html
    [2017-03-22 18:20:54 IST] 612B readme.txt
    [2017-03-22 18:24:03 IST] 0B images/
    ```

    6. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.

    # Remove defualt configuration and replace it with the below. Please change as per your local setup.
    Remove default configuration and replace it with the below. Please change as per your local setup.

    ```
    $ cat /etc/nginx/sites-enabled/default
    server {
    listen 80;
    @@ -40,11 +50,12 @@ server {
    }
    }
    #Reload Nginx
    $ sudo service nginx relaod
    ```

    7. Open your browser and typel localhost [as per my example]
    ```
    Screenshot: https://play.minio.io:9000/atuljha/minionginxstatic.png

    ```


  17. harshavardhana renamed this gist Jun 1, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  18. koolhead17 created this gist Mar 22, 2017.
    50 changes: 50 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    OS: Ubuntu 16.04

    1. Install nginx : nginx version: nginx/1.10.0 (Ubuntu)
    2. Install Minio: Follow https://github.com/minio/minio
    3. Install MC client: Follow https://github.com/minio/mc
    4. Create a bucket:

    $ mc mb myminio/static
    Bucket created successfully ‘myminio/static’.

    5. Make bucket public to host/access static content.
    $ mc policy download myminio/static
    Access permission for ‘myminio/static’ is set to ‘download’

    6. Upload a sample static HTML site to minio bucket, in my case i used example: http://www.oswd.org/user/profile/id/12362/

    $ mc cp -r terrafirma/ myminio/static
    ...ma/readme.txt: 39.37 KB / 39.37 KB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 31.94 KB/s 1s

    Note: this is how my bucket content appears to me currently.

    $ mc ls myminio/static
    [2017-03-22 18:20:52 IST] 4.7KiB default.css
    [2017-03-22 18:20:54 IST] 5.4KiB index.html
    [2017-03-22 18:20:54 IST] 612B readme.txt
    [2017-03-22 18:24:03 IST] 0B images/

    6. Configure Nginx as proxy to serve static pages from public bucket name ``static`` from Minio.

    # Remove defualt configuration and replace it with the below. Please change as per your local setup.

    $ cat /etc/nginx/sites-enabled/default
    server {
    listen 80;
    server_name localhost;
    location / {
    rewrite ^/$ /static/index.html break;
    proxy_set_header Host $http_host;
    proxy_pass http://localhost:9000/static/;
    }
    }

    #Reload Nginx
    $ sudo service nginx relaod

    7. Open your browser and typel localhost [as per my example]
    Screenshot: https://play.minio.io:9000/atuljha/minionginxstatic.png