BDX-town / Mangane

Alternative frontend for Akkoma
https://bdx.town
GNU Affero General Public License v3.0
148 stars 26 forks source link

black text on dark background #316

Closed kendofriendo closed 5 months ago

kendofriendo commented 5 months ago

qua5ao 1

Running on docker with caddy.

Tried editing the config thusly but didn't seem to have an effect.

soc.website.win {
    reverse_proxy akkoma-akkoma-1:4000

    header {
        Content-Security-Policy "style-src 'self' 'unsafe-inline';"
    }
}
paulo-roger commented 5 months ago

I second this problem. Also with caddy and docker.

Cl0v1s commented 5 months ago

I'm not familiar with Caddy, but the issue is with said CSP headers not being applied correctly by your caddy configuration Here is an answer of someone with a working configuration:

https://github.com/BDX-town/Mangane/issues/315#issuecomment-2071406572

Don't hesitate to explain your solution if you happen to get it working so I could add that to the documentation :)

Cl0v1s commented 5 months ago

From what I can read your configuration seems to differ from the one in doc:

Content-Security-Policy "upgrade-insecure-requests;script-src 'self';connect-src 'self' blob: https://example.com wss://example.com;media-src 'self' https:;img-src 'self' data: blob: https:;default-src 'none';base-uri 'self';frame-ancestors 'none';style-src 'self' 'unsafe-inline';font-src 'self';manifest-src 'self';"

https://github.com/BDX-town/Mangane?tab=readme-ov-file#messy-colors--style-configuration

paulo-roger commented 4 months ago

My solution was to run Mangane in another domain lol. I rather prefer to have the option to easily jump from a FE to another, so it is all good.

Cl0v1s commented 4 months ago

Thanks for your feedback !