acme-companion: Refused to apply style because the script was loaded even though its MIME type is not a valid JavaScript MIME type

Hello, I make a Identity Server program with Asp.Net Core 2.2 and it works well on http://mydomain.com with the below configuration:

  identityserver:
    image: identityserver
    build:
      context: .
      dockerfile: IdentityServer/Dockerfile
    container_name: is4
    ports:
      - 5000:5000
    environment:
      ASPNETCORE_ENVIRONMENT: Development
      VIRTUAL_PORT: 5000
      VIRTUAL_HOST: my.domain1.com

I have a good format on httpπŸ˜•/my.domain1.com image

When I apply SSL with your Let’s Encrypt docker to this same code with the below configuration:

  identityserver:
    image: identityserver
    build:
      context: .
      dockerfile: IdentityServer/Dockerfile
    container_name: is4
    restart: always
    environment:
      ASPNETCORE_ENVIRONMENT: Development
      VIRTUAL_PORT: 5000
      VIRTUAL_HOST: my.domain2com
      LETSENCRYPT_HOST: my.domain2.com
      LETSENCRYPT_EMAIL: address@domain2.com

I have a formatting problem on httpsπŸ˜•/my.donmain2.com: image

In the Firefox web developer:

image image image

What do I have to do to fix this issue? Thank you.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

It is solved. Before, I used the app publication by FTP. Now It is necessary to do:

  • Push my docker to Docker Hub
  • Push it on my server
  • Run the Docker compose

=> OK