26 Nov 2019 |
Michael (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 |
Michael (t3chguy) | whereas view.matrix.org says content-type: text/css; charset=utf-8 for that file | 11:41:23 |
Mathijs | https://matrix.f-droid.org/css/main.css <-- 404 | 11:41:29 |
Mathijs | is that supposed to happen? | 11:41:38 |
Michael (t3chguy) | oh err, no | 11:42:27 |
Mathijs | https://view.matrix.org/css/main.css doesn't error :) | 11:42:33 |
Michael (t3chguy) | that is SUPER weird | 11:43:27 |
Michael (t3chguy) | whats your reverse proxy config look like? | 11:44:24 |
Michael (t3chguy) | are you running the executable with the correctly working directory (the root of the repo) | 11:45:05 |
Mathijs | location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $remote_addr;
} | 11:45:11 |
Mathijs | * location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $remote_addr;
}
| 11:45:26 |
Mathijs | 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 |
Michael (t3chguy) | that would explain why it can't find the css folder/file :P | 11:45:49 |
Michael (t3chguy) | maybe a start-up sanity check for that would be nice | 11:45:59 |
Michael (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 |
Github | Created issue: https://github.com/matrix-org/matrix-static/issues/80 | 11:46:25 |
Mathijs | 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 |
Michael (t3chguy) | add
WorkingDirectory=/opt/matrix-static/ assuming you have an /opt/matrix-static/assets/ folder | 11:47:37 |
Michael (t3chguy) | or you could have nginx serve the assets from wherever they are | 11:47:56 |
Mathijs | yay, that fixed it :D | 11:48:44 |
Michael (t3chguy) | :D | 11:49:37 |
Michael (t3chguy) | matrix-static for sure needs some love | 11:49:42 |
Michael (t3chguy) | throw as many complains as you can think of at me | 11:49:47 |
Michael (t3chguy) | as motivation :D | 11:49:50 |
Michael (t3chguy) | * throw as many complaints as you can think of at me | 11:49:56 |
Mathijs | I really want a room-whitelist | 11:50:07 |
Mathijs | but that's already an issue, IIRC | 11:50:12 |
Michael (t3chguy) | I have some spare time this coming weekend | 11:50:44 |
Michael (t3chguy) | might try do that :) | 11:50:48 |
Mathijs | awesome! | 11:51:08 |