I have set up Snipe-it via portioner but I’m unable to get email working and I keep getting a url mismatch for the website. Any help I would be grateful for.
Emails won’t send at all no matter who I use.
app url ties to nginx for so reason creating a mismatch
For example if nginx is on 10.0.0.1:57 and snipeit on 10.0.0.1:3001 when I try to access the startup not from nginx it says I should be on 10.0.0.1:57 instead. if I access it from nginx at example.com it again says I should be at 10.0.0.1:57
Let me know if you need more information Im doing my best to explain what is happening.
Im running a raspberry pi 4b
Portioner 2.14.0
docker 20.10.17
Snipe-it 6.0.6
nginx 2.9.16
version: "3"
services:
mysql:
image: linuxserver/mariadb
container_name: snipe_mysql
restart: unless-stopped
volumes:
- /homw/admin/appdata/snipeit/mariadb:/config
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- MYSQL_ROOT_PASSWORD=snipe
- MYSQL_USER=username
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=snipe
snipeit:
image: linuxserver/snipe-it:latest
container_name: Snipe_it
restart: unless-stopped
depends_on:
- mysql
volumes:
- /home/admin/appdata/snipeit:/config
environment:
- APP_TIMEZONE=America/New_York
- APP_URL=http:10.0.0.1:3001
- APP_TRUSTED_PROXIES=nginx-app-1
- MYSQL_PORT_3306_TCP_ADDR=mysql
- MYSQL_PORT_3306_TCP_PORT=3306
- MYSQL_DATABASE=snipe
- MYSQL_USER=username
- MYSQL_PASSWORD=password
- PGID=1000
- PUID=1000
# Email settings
- MAIL_ENV_DRIVER=smtp
- MAIL_PORT_587_TCP_ADDR=smtp-mail.outlook.com
- MAIL_PORT_587_TCP_PORT=587
- MAIL_ENV_USERNAME=example@outlook.com
- MAIL_ENV_PASSWORD=password
- MAIL_ENV_ENCRYPTION=tls
- MAIL_ENV_FROM_ADDR=example@outlook.com
- MAIL_ENV_FROM_NAME=Snipe-IT
ports:
- "3001:80"