!NZMOxbULGynZSpvFxq:matrix.org

#matrix-static:matrix.org

40 Members
chat for https://github.com/t3chguy/matrix-static/ - deployed at https://view.matrix.org/21 Servers

Load older messages


SenderMessageTime
26 Nov 2019
@x:riot.ovhMichael (t3chguy) Refused to apply style from 'https://matrix.f-droid.org/css/main.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 11:40:14.009 11:40:33
@x:riot.ovhMichael (t3chguy) whereas view.matrix.org says content-type: text/css; charset=utf-8 for that file 11:41:23
@mathijs:matrix.vgorcum.comMathijshttps://matrix.f-droid.org/css/main.css <-- 40411:41:29
@mathijs:matrix.vgorcum.comMathijsis that supposed to happen?11:41:38
@x:riot.ovhMichael (t3chguy)oh err, no11:42:27
@mathijs:matrix.vgorcum.comMathijshttps://view.matrix.org/css/main.css doesn't error :)11:42:33
@x:riot.ovhMichael (t3chguy) that is SUPER weird 11:43:27
@x:riot.ovhMichael (t3chguy)whats your reverse proxy config look like?11:44:24
@x:riot.ovhMichael (t3chguy)are you running the executable with the correctly working directory (the root of the repo)11:45:05
@mathijs:matrix.vgorcum.comMathijs location / { proxy_pass http://127.0.0.1:8000; proxy_set_header X-Forwarded-For $remote_addr; }11:45:11
@mathijs:matrix.vgorcum.comMathijs *
  location / {
    proxy_pass http://127.0.0.1:8000;
    proxy_set_header X-Forwarded-For $remote_addr;
  }
11:45:26
@mathijs:matrix.vgorcum.comMathijs
In reply to @x:riot.ovh
are you running the executable with the correctly working directory (the root of the repo)
oh, maybe that's it
11:45:34
@x:riot.ovhMichael (t3chguy)that would explain why it can't find the css folder/file :P11:45:49
@x:riot.ovhMichael (t3chguy)maybe a start-up sanity check for that would be nice11:45:59
@x:riot.ovhMichael (t3chguy)!github create "check if /assets/ folder is accessible on start-up" "to prevent people running in wrong working directory and wondering why it looks even worse :("11:46:24
@_neb_github:matrix.orgGithubCreated issue: https://github.com/matrix-org/matrix-static/issues/8011:46:25
@mathijs:matrix.vgorcum.comMathijs

I run it through a systemd service:

[Service]
User=matrix-static
Group=matrix-static
ExecStart=/opt/matrix-static/matrix-static --config-file=/opt/matrix-static/config.json

11:46:46
@x:riot.ovhMichael (t3chguy) add
WorkingDirectory=/opt/matrix-static/ assuming you have an /opt/matrix-static/assets/ folder
11:47:37
@x:riot.ovhMichael (t3chguy)or you could have nginx serve the assets from wherever they are11:47:56
@mathijs:matrix.vgorcum.comMathijsyay, that fixed it :D11:48:44
@x:riot.ovhMichael (t3chguy):D11:49:37
@x:riot.ovhMichael (t3chguy)matrix-static for sure needs some love11:49:42
@x:riot.ovhMichael (t3chguy)throw as many complains as you can think of at me11:49:47
@x:riot.ovhMichael (t3chguy)as motivation :D11:49:50
@x:riot.ovhMichael (t3chguy) * throw as many complaints as you can think of at me11:49:56
@mathijs:matrix.vgorcum.comMathijsI really want a room-whitelist11:50:07
@mathijs:matrix.vgorcum.comMathijsbut that's already an issue, IIRC11:50:12
@x:riot.ovhMichael (t3chguy)I have some spare time this coming weekend11:50:44
@x:riot.ovhMichael (t3chguy)might try do that :)11:50:48
@mathijs:matrix.vgorcum.comMathijsawesome!11:51:08

Show newer messages


Back to Room ListRoom Version: