https://github.com/takeyuweb/docker-ngx_mruby-playground
ngx_mruby を試して遊ぶためのdocker環境
https://github.com/takeyuweb/docker-ngx_mruby-playground
Last synced: over 1 year ago
JSON representation
ngx_mruby を試して遊ぶためのdocker環境
- Host: GitHub
- URL: https://github.com/takeyuweb/docker-ngx_mruby-playground
- Owner: takeyuweb
- Created: 2018-11-22T07:35:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-24T05:30:45.000Z (over 7 years ago)
- Last Synced: 2025-01-22T05:16:23.039Z (over 1 year ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ngx_mruby 実験用
==
```bash
$ docker-compose up -d
$ docker-compose exec nginx auto-reload-nginx.sh
```
## conf.d
Docker コンテナ内にマウントされるので、ここで設定ファイルを書き換えて遊ぶことができます。
`auto-reload-nginx.sh` がファイルの変更を検知すると nginx を reload するので、コンテナの再起動は不要です。
```bash
$ vim conf.d/nginx.conf
```
## Samples
### backquote
http://127.0.0.1:8080/backquote
### Redis
http://127.0.0.1:8080/redis/set?key=hoge&value=fuga
http://127.0.0.1:8080/redis/get?key=hoge
http://127.0.0.1:8080/redis/set?key=dummy
### Background
http://127.0.0.1:8080/background
### access
http://127.0.0.1:8080/access/allow
http://127.0.0.1:8080/access/deny
### Rewrite
http://127.0.0.1:8080/rewrite/hogehoge/test.txt