{"id":20863027,"url":"https://github.com/romijulianto/kong-cdn-integration","last_synced_at":"2025-06-29T23:35:37.645Z","repository":{"id":190995192,"uuid":"683678918","full_name":"romijulianto/kong-cdn-integration","owner":"romijulianto","description":"Kong API Gateway in Docker and Integration with CDN","archived":false,"fork":false,"pushed_at":"2023-08-27T14:36:21.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T08:15:13.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romijulianto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-27T11:05:34.000Z","updated_at":"2023-08-27T14:36:24.000Z","dependencies_parsed_at":"2023-08-27T16:29:32.497Z","dependency_job_id":null,"html_url":"https://github.com/romijulianto/kong-cdn-integration","commit_stats":null,"previous_names":["romijulianto/kong-cdn-integration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romijulianto%2Fkong-cdn-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romijulianto%2Fkong-cdn-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romijulianto%2Fkong-cdn-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romijulianto%2Fkong-cdn-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romijulianto","download_url":"https://codeload.github.com/romijulianto/kong-cdn-integration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243236420,"owners_count":20258828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T05:27:15.687Z","updated_at":"2025-03-12T14:42:32.667Z","avatar_url":"https://github.com/romijulianto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kong API Gateway with CDN Integration Python\n\n## Installing Prerequisites\n\nPython `module request`\n```shell\n$ pip install requests\n```\nDocker Desktop Windows with `wsl 2`\n```shell\n$ wsl --update\n```\n\n## Getting started\n\n#### Important note\nFrom official github of Kong there is one issue https://github.com/Kong/kong/issues/5324, so we can't use kong's latest docker image. So we will use `kong:1.3.0-alpine` docker image.\n\nChange directory to `src`\n```shell\n$ cd src\n```\nCreate `kong network`\n```shell\n$ ./script/create_kong_network\n```\n\nStart `postgres`\n```shell\n$ ./script/start_postgres\n```\n\nMigrate `kong database`\n```shell\n$ ./script/migration_bootstrap\n$ ./script/migration_up\n```\n\nMigrate `kong admin database`\n```shell\n$ ./script/prepare_konga\n```\n\nStart `kong api gateway`\n```shell\n$ ./script/start_kong\n```\n\nStart `kong admin`\n```shell\n$ ./script/start_konga\n```\n\nOpen `kong admin UI` http://localhost:1337/\n\n#### Prepare Microservices CDN Integration\nThere are one `microservices` example for this demo with 2 script python, `upload.py` and `retrieve.py`. It is just simple `microservice` written in `Python`. Here how to run it\n\nAdd `Services` to Kong API Gateway\n\n```shell\n$ curl -i -X POST   --url http://localhost:8001/services/   \n--data 'name=ecommerce-romi'   \n--data 'url=http://apache2.romijulianto.my.id/'\n```\n\nAdd `Routes` to Kong API Gateway\n\n```shell\n$ curl -i -X POST   --url http://localhost:8001/services/ecommerce-romi/routes   \n--data 'paths[]=/cdn-assets'\n```\n\nChange Directory to `services`\n\n```shell\n$ cd services\n```\nRun `upload.py`\n\n```shell\n$ python upload.py\n```\n\nRun `retrieve.py`\n```shell\n$ python retrieve.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromijulianto%2Fkong-cdn-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromijulianto%2Fkong-cdn-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromijulianto%2Fkong-cdn-integration/lists"}