Skip to content
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

Refused to apply style from #4544

Closed
luluhoc opened this issue Mar 10, 2022 · 6 comments
Closed

Refused to apply style from #4544

luluhoc opened this issue Mar 10, 2022 · 6 comments

Comments

@luluhoc
Copy link

luluhoc commented Mar 10, 2022

Describe the bug
A clear and concise description of what the bug is.
Refused to apply style from 'https://xxxx.com/ombi/styles.8fbf4a93d83e0d157368.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I get this for all the styles and js. I'm behind nginx reverse proxy

My nginx conf.

location /ombi {
       proxy_pass http://ombi:3579;
     proxy_set_header Host $host:$server_port;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect  http://  $scheme://;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_cache_bypass $cookie_session;
    proxy_no_cache $cookie_session;
    proxy_buffers 32 4k;
        }

docker compose

ombi:
    image: lscr.io/linuxserver/ombi
    container_name: ombi
    depends_on:
      - radarr
      - sonarr
      - jackett
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - BASE_URL=/ombi
    volumes:
      - ${CONFIG_PATH}/ombi:/config
    ports:
      - 3579:3579
    restart: unless-stopped
    networks:
      - proxy

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs (Logs directory where Ombi is located)
If applicable, a snippet of the logs that seems relevant to the bug if present.

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Ombi Version (please complete the following information):

  • Version [e.g. 4.0.958] late
  • Media Server [e.g. Plex]
  • Database Type: SQLite (Please change if using MySQL)

Additional context
Add any other context about the problem here.

@github-actions
Copy link

Hi!

Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.

Have you looked at the wiki yet? https://docs.ombi.app/

Before posting make sure you also read our FAQ.

Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.

If we need more information or there is some progress we tag the issue or update the tag and keep you updated.

Thanks!

Ombi Bot.

@tidusjar
Copy link
Member

Might be worth asking on the discord. I can't help that much with Reverse Proxy setups, it's not really my area of knowledge.

Have you read through here: https://docs.ombi.app/info/reverse-proxy/

@twanariens
Copy link
Collaborator

Seems more like a baseurl configuration issue than a Reverse Proxy issue though.

Did you configure your baseurl in the Ombi configuration? Settings -> Configuration -> General

@luluhoc
Copy link
Author

luluhoc commented Mar 24, 2022

Seems more like a baseurl configuration issue than a Reverse Proxy issue though.

Did you configure your baseurl in the Ombi configuration? Settings -> Configuration -> General

Hey,

Yes I did it is set to /ombi

@twanariens
Copy link
Collaborator

twanariens commented Mar 24, 2022

What happens if you try this nginx conf:https://docs.ombi.app/info/reverse-proxy/#nginx

Nginx conf:

    location /ombi {
       proxy_pass http://ombi:3579;
       include /etc/nginx/proxy.conf;
    }

    # This allows access to the actual api
    location /ombi/api {
       proxy_pass http://ombi:3579;
    }
    # This allows access to the documentation for the api
    location /ombi/swagger {
        proxy_pass http://ombi:3579;
    }

proxy.conf

    client_max_body_size 10m;
    client_body_buffer_size 128k;

    # Timeout if the real server is dead
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

    # Advanced Proxy Config
    send_timeout 5m;
    proxy_read_timeout 240;
    proxy_send_timeout 240;
    proxy_connect_timeout 240;

    # Basic Proxy Config
    proxy_set_header Host $host:$server_port;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect  http://  $scheme://;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_cache_bypass $cookie_session;
    proxy_no_cache $cookie_session;
    proxy_buffers 32 4k;
    proxy_redirect http://ombi:3579 https://$host;

@luluhoc
Copy link
Author

luluhoc commented Apr 2, 2022

What happens if you try this nginx conf:https://docs.ombi.app/info/reverse-proxy/#nginx

Nginx conf:

    location /ombi {
       proxy_pass http://ombi:3579;
       include /etc/nginx/proxy.conf;
    }

    # This allows access to the actual api
    location /ombi/api {
       proxy_pass http://ombi:3579;
    }
    # This allows access to the documentation for the api
    location /ombi/swagger {
        proxy_pass http://ombi:3579;
    }

proxy.conf

    client_max_body_size 10m;
    client_body_buffer_size 128k;

    # Timeout if the real server is dead
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

    # Advanced Proxy Config
    send_timeout 5m;
    proxy_read_timeout 240;
    proxy_send_timeout 240;
    proxy_connect_timeout 240;

    # Basic Proxy Config
    proxy_set_header Host $host:$server_port;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect  http://  $scheme://;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_cache_bypass $cookie_session;
    proxy_no_cache $cookie_session;
    proxy_buffers 32 4k;
    proxy_redirect http://ombi:3579 https://$host;

It is working thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants