System Information
- Strapi Version: 3.2.5 in docker
- Operating System: ubuntu 20.04
- Database: sqLite
- Node Version: 12
- NPM Version: ~6
- Yarn Version:
Hello, i’m running a strapi/strapi docker container behind a caddyv2 reverse proxy. I’m new to strapi and self-hosting and i don’t understand how to make this works. My plan is to run strapi with sqLite in production as i want to keep the stack light.
so my docker-compose looks like this
version: '3'
services:
strapi:
image: strapi/strapi
container_name: strapi
restart: unless-stopped
volumes:
- ~/docker/strapi/app:/srv/app
ports:
- '1337:1337'
my CaddyFile contains this:
strapi.xxxxxxx.com {
reverse_proxy * localhost:1337
}
in strapi, my config/server.js file is:
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
url: 'strapi.xxxxxxx.com'
admin: {
auth: {
secret: env('ADMIN_JWT_SECRET', 'xxxxxxxxxxxxxxxxxxxx'),
},
},
});
From now, i’m not sure what i should do. cause i cant access my admin with the url:
strapi.xxxxxxx.com/admin
I did not forget to restart both caddy and docker after changing my various configuration files. I tried tweaking a little bit without success and cannot find precise documentation for what i’m trying to do. I’m probably missing few things and hope for some help to help me run my project.
thanks a lot.