-
I've just migrating to a new machine. Actually, I switched from nginx-proxy-manager to native nginx, and now I don't know how to configure it. I'm using mastodon v4.1.15 with docker and s3. DevTools Log
Here's my new mastodon.conf
media.conf
And my .env.production
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For example, nginx failed to get /packs/js/locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js nginx/access.log
I confirm that ls public/packs/js/$ docker exec -it mastodon_web_1 bash
mastodon@3592ca660055:~$ ls public/packs/js/ | grep 'locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js'
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js.br
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js.gz
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js.map
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js.map.br
locale_zh-CN-bf8fe85aeb8ceb0190a7.chunk.js.map.gz And here's my web container configuration if anyone need it docker-compose.yml web:
container_name: mastodon_web_1
image: ${image}
restart: unless-stopped
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks:
- external_network
- internal_network
healthcheck:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
ports:
- '127.0.0.1:3000:3000'
depends_on:
- db
- redis
# - es
volumes:
- ./public/system:/mastodon/public/system |
Beta Was this translation helpful? Give feedback.
-
Go to cloudflare caching configuration and purge everything fix my problem. I found that Yes, I used |
Beta Was this translation helpful? Give feedback.
Go to cloudflare caching configuration and purge everything fix my problem.
I found that
Cf-Cache-Status
in the header isHIT
, which can be found in DevTools Network section.Yes, I used
try_files $uri =404;
for a couple of days. But cloudflare cache make my static files still work.