Public_admin_url

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Is it possible to deploy admin panel on the main link of a domain.

For example: www.example.com, that opens directyl admin panel?

I tried to configure in server.js:
module.exports = ({ env }) => ({
host: env(“HOST”, “0.0.0.0”),
port: env.int(“PORT”, 1337),
admin: {
auth: {
secret: env(“ADMIN_JWT_SECRET”, “be8d5723db8f78788c380233539c7d78”),
},
},
url: env(“PUBLIC_ADMIN_URL”, “/”),
});

but it did not worked

@DMehaffy

I want to replace www.example.com/admin with www.example.com

Thank you

Currently it’s not possible to serve the admin panel on the root, I would suggest just creating a meta-refresh index.html to redirect to /admin

You could use a reverse-proxy if that’s available to you.

If you’re deploying in Docker, it’s super trivial using the nginx image. I had to do it anyway to place my /uploads folder under the SPA’s root URL