You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The hostname for your instance
# Do NOT put http:// or https://
# ONLY put your domain here. Subdomains are ok.
LEMMY_HOSTNAME="domain"
# If you use Cloudflare, your Cloudflare API token. Otherwise leave blank.
# Cloudflare Proxy users - set this if you have HTTPS issues
CF_API_TOKEN="x"
# The name of your Lemmy instance, will be displayed on the site header (only used during first-time setup)
# If you use special characters, please backslash-escape them.
SETUP_SITE_NAME="x"
# The admin username for first time setup
SETUP_ADMIN_USER="x"
###############################################################
### SETTINGS FOR ADVANCED USERS ONLY ###
### Limited support is provided for these settings ###
###############################################################
# If true/1, prefix the Caddy host block with http:// to disable TLS entirely
CADDY_DISABLE_TLS="true"
# The external port to use for Caddy's port 80
#CADDY_HTTP_PORT=
# The external port to use for Caddy's port 443
#CADDY_HTTPS_PORT=
# The tls_enabled key in lemmy.hjson
LEMMY_TLS_ENABLED="true"
# If true/1, add an email configuration block to lemmy.hjson
ENABLE_EMAIL="true"
# The SMTP server to use for email, if ENABLE_EMAIL==true
SMTP_SERVER="x"
# The login name to use for the SMTP server
SMTP_LOGIN="x"
# The login password to use for the SMTP server
SMTP_PASSWORD="x"
# The TLS type to use for SMTP, can be none, tls, or starttls
SMTP_TLS_TYPE="none"
# The SMTP port to use for email, if ENABLE_EMAIL==true
SMTP_PORT="x"
# The display name to show on emails
SMTP_NOREPLY_DISPLAY="x"
# The full from address for emails
SMTP_NOREPLY_FROM="x"
# If true/1, also deploy the postfix server and configure Lemmy to send emails
# Will override ENABLE_EMAIL to true
ENABLE_POSTFIX="false"
# The database.pool_size key in lemmy.hjson
POSTGRES_POOL_SIZE="5"
# The shm (shared memory) size parameter to pass to Postgres
# Docker unspecified default is 64m, official Lemmy uses 1g
# Low memory systems might not be able to use 1g
# Keeping the default at 64m, but allowing users to change it here if they experience issues
POSTGRES_SHM_SIZE="1g"
I've taken a look at your setup and I'm quite certain your issues are due to you using Nginx. This deployment is designed as an "all in one" hosting solution for people who don't currently have their own webservers, so by overriding the template to include Nginx, weird things might happen.
Unfortunately I don't run Nginx so the help I can provide is limited, but most of the time it's due to host headers or something like that. Federation requires HTTPS, and it's also very picky about hosts, CORS, origins, and the like.
It's often not good to run a proxy server behind a proxy server, so you may be better off disabling Caddy entirely (remove it from the deployment template) and just make sure your Nginx can forward to the Lemmy frontend container in this deployment. Then you could read the official Lemmy Ansible configs to make sure your Nginx config has all the attributes it needs for federation. You can check the official configs here:
Did you check the FAQ & Troubleshooting section for answers to common questions and issues?
Describe the issue
Diagnostic Information
I have modified the template/docker-compose.template:
My config:
My Nginx.conf:
I am sure this has to do something with TLS, I would appreciate any help!
The text was updated successfully, but these errors were encountered: