저는 mydomain.com 서버에 표준(공식) Docker 기반 Discourse를 설치하여 사용 중입니다. https://mydomain.com/xx.txt 경로에 TXT 파일을 배치하여 공개적으로 접근할 수 있도록 해야 합니다. 이는 WeChat 미니 프로그램에 WebView를 통해 제 Discourse 사이트를 임베드하기 위한 인증에 필요합니다. 구체적으로 WeChat 미니 프로그램은 도메인 소유권을 확인하기 위해 도메인 루트 경로에 TXT 파일이 있어야 합니다.
• 질문: 기본 Docker 설정으로 설치된 제 Discourse 사이트의 “루트 디렉터리”는 어디인가요?
If it checks just for something in the file (rather than expecting the output to be exactly that file), you can add that text to a topic and then use a permalink redirect to make /xx.txt redirect to the topic.
Right! I think that’s exactly what I told someone to do some years ago.
I periodically seem to forget that /raw/ path somehow.
So you just need to create a public topic with the text in it. You can unlist it so that it doesn’t show up in searches. As long as whatever is following the redirects, it should Just Work.