This may be a problem of basic knowledge, but please let me know.
I installed Mattermost as below.
Mattermost source is “/opt/mattermost”.
Mattermost domain is “mattermost.mydomain.com(e.g.)”.
I can’t update the certificate of Let’s Encrypt because I can not access the token file contained in the “.well-known” directory in “mattermost.mydomain” (not /opt/mattermost). The token file itself certainly exists in “.well-known/acme-challenge/” directory.
Is this cause redirected to /opt/mattermost?
I tried to create a symbolic link for “mattermost.mydomain/.well-known” directory in “/opt/mattermost”. But I can’t do this. I had something similar in other software, so I added the following syntax to nginx.conf.
# ACME challenge
location ^~ /.well-known {
allow all;
default_type "text/plain";
try_files $uri =404;
}
location ^~ /.well-known/acme-challenge/ {
allow all;
}
But this method could not be done either.
Please tell me how to make Let’s Encrypt system accessible under the mattermost.mydomain/.well-known directory.
Thanks for advice,