$ cp .env.example .env
Edit OAUTH2_CLIENT_ID
, OAUTH2_CLIENT_SECRET
, OAUTH2_REDIRECT_URI
.
$ vi .env
$ cd laradoc
$ vi caddy/Caddyfile
diff --git a/caddy/Caddyfile b/caddy/Caddyfile
--- a/caddy/Caddyfile
+++ b/caddy/Caddyfile
@@ -1,5 +1,5 @@
# Docs: https://caddyserver.com/docs/caddyfile
-0.0.0.0:80 {
+https://oauth2-chatwork.local {
root /var/www/public
fastcgi / php-fpm:9000 php {
index index.php
@@ -17,7 +17,7 @@
errors /var/log/caddy/error.log
# Uncomment to enable TLS (HTTPS)
# Change the first list to listen on port 443 when enabling TLS
- #tls self_signed
+ tls self_signed
# To use Lets encrpt tls with a DNS provider uncomment these
# lines and change the provider as required
$ cd laradoc
$ docker-compose up caddy
(press CTRL+C after generating a self-signed cert)
$ docker run --rm --interactive --tty --volume $PWD:/app composer install
$ cd laradoc
$ docker-compose up -d mysql caddy
$ echo '127.0.0.1 oauth2-chatwork.local' >> /etc/hosts
Access https://oauth2-chatwork.local via browser