Forked from koolhead17/gist:4b8dd8d95ec86368634693cf9ad9391c
Last active
September 29, 2025 00:12
-
Star
(117)
You must be signed in to star a gist -
Fork
(29)
You must be signed in to fork a gist
-
-
Save harshavardhana/f05b60fe6f96803743f38bea4b565bbf to your computer and use it in GitHub Desktop.
Revisions
-
harshavardhana revised this gist
Nov 15, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 anonymous download myminio/static Access permission for ‘myminio/static’ is set to ‘download’ ``` -
harshavardhana revised this gist
Dec 8, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 Access permission for ‘myminio/static’ is set to ‘download’ ``` -
harshavardhana revised this gist
Dec 8, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 Access permission for ‘myminio/static’ is set to ‘download’ ``` -
harshavardhana revised this gist
Jun 11, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
harshavardhana renamed this gist
Jun 11, 2019 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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: ``` $ 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 @@ -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. Remove default configuration and replace it with the below. Please change as per your local setup. -
harshavardhana revised this gist
Jun 11, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) 3. Install [mc client](https://github.com/minio/mc) 4. Create a bucket: -
harshavardhana revised this gist
Jun 11, 2019 . No changes.There are no files selected for viewing
-
harshavardhana revised this gist
Jun 11, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## How to configure static website using Nginx with MinIO ? 1. Install [nginx](http://nginx.org/) 2. Install [minio](https://github.com/minio/minio) -
harshavardhana revised this gist
Jun 11, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## How to configure static website using Nginx with ? 1. Install [nginx](http://nginx.org/) 2. Install [minio](https://github.com/minio/minio) -
harshavardhana revised this gist
Jun 11, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/ ``` 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 ``` 8. Open your browser and type http://localhost -
harshavardhana renamed this gist
Nov 26, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
harshavardhana renamed this gist
Nov 26, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
harshavardhana revised this gist
Oct 24, 2017 . 1 changed file with 2 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,12 +50,7 @@ server { } } $ sudo service nginx reload ``` 7. Open your browser and type http://localhost -
harshavardhana revised this gist
Jul 11, 2017 . No changes.There are no files selected for viewing
-
harshavardhana revised this gist
Jul 11, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ ## Ubuntu 16.04 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: ``` -
harshavardhana revised this gist
Jun 1, 2017 . 1 changed file with 15 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,44 @@ ## 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 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 { } } $ sudo service nginx relaod ``` 7. Open your browser and typel localhost [as per my example] ``` Screenshot: https://play.minio.io:9000/atuljha/minionginxstatic.png ``` -
harshavardhana renamed this gist
Jun 1, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
koolhead17 created this gist
Mar 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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