Open Filipe-Souza opened 5 years ago
Same issue happened to me as well.
Also, the add server page did not work, submitting it resulted into what looked like a 404 page.
Same problem here.
I've also tried to add the env variable RAILS_SERVE_STATIC_ASSETS=true
by entering into the container. But nothing is working.
Please help!
I'm also getting 404 errors for css files.
Hello, I got the same issue today. Looks like static assets requests are proxied to the Ruby container and not loaded by nginx. I temporary fixed the issue by adding the correct config inside the nginx-proxy container. This the missing config:
location ~ "^/assets/.+-[0-9a-f]{32}.*" {
root /app/public;
gzip_static on;
expires max;
add_header Cache-Control public;
}
If you put it inside the second server directive in /etc/nginx/conf.d/default.conf
and reload the nginx process nginx -s reload
the static assets will load correctly.
I will try to investigate why this config is missing and add a PR
EDIT: An easier solution that persists after container reboot is to create a file inside the docker vhost volume directory. The file need to have the same name as your instance FQDN and contain the same config pasted above
Hello,
I made a fresh install of intercity using this script: bootstrap.sh. But when accessing the configured domain, the assets from the page shows 404 errors.
Examples (in browser):
GET https://customdomain.com/assets/application-33a32c73fee422e91b607ed06692d9971c7a537b25f6b7b597d12d45dce5c9c6.css net::ERR_ABORTED 404 GET https://customdomain.com/assets/application-edc1f8e2f6dd27abb52f87d60ab38c4ccae245ba793a13ff762c49a19f758083.js 404 GET https://customdomain.com/assets/logo_icon-5d7d7bf45efebb87117d08fb6b42f04a136f618aaf9ebf4a608841e8b425542a.svg 404
Acessing the logs in docker shows me the following errors (server):
Another example:
Maybe I'm missing something in the initial setup. This errors occur in all pages.