-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Error - docker-compose #12
Comments
I can't get it to work either. My file looks like this:
|
Log in to the admin interface, download a theme and make sure to configure your site to use that theme. |
@5an1ty downloaded an additional theme, but I can't change the settings so that koken uses it. Do you also use a docker installation with port forwarding? |
Yes, installed it regularly, I recall having a similar theme error, opened up the admin interface on yourip/admin and modified the theme settings there. You have to go to the site section, then click on the themes button at the bottom of the page and activate the theme you selected. (I tried the theme elementary) Not sure what this env variable does, don't think I set it: |
I was able to fix this problem by modifying define('LOOPBACK_HOST_HEADER', true); For new build change file |
@darklow your advice don't solve my fix.... someone know how fix it? thanks in advance... I use https
|
If you're running in your own machine (i.e., not a public URL), your koken container needs to access your host. Try adding:
Replace
Note: find your network interface, it might not be eth0. This works for me. |
I was facing the same issue while using the guide for Installing Koken to Digital Ocean droplet (via docker). define('LOOPBACK_HOST_HEADER', true); under storage/configuration/ No need for any process restart, just refresh your browser. Your fresh new koken is there. It took me 1 week searching on web about this. Thanks @darklow for sharing! |
I had a similar issue even with
If you have this problem then you will probably see weird characters in the koken apache/nginx log: I managed to get around this by enabling SSL in the Dockerfile:
and exposing the koken host as an extra_hosts in the docker compose:
Dockerfile and docker-compose.yml as a reference. If you are interested in my setup I have it here: https://github.com/pspoerri/docker-koken-letsencrypt (I still need to document and test it properly). |
This is getting even more weird, under different server and different docker setup using docker-compose.yml in order to fix this issue I needed to do exact opposite - remove this line which I added to for previous setup to work |
API Error
The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections.
proxy script
docker run -d -p 80:80 -p 443:443 -v /etc/nginx/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro --name=proxy --restart=always jwilder/nginx-proxy
docker-compose.yml
someone know how fix it?
The text was updated successfully, but these errors were encountered: