-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to portainer server using https #5
Comments
I run my portainer backup nightly using a HTTPS (secure) connection. |
Hi @savageautomate , I've added a copy of my compose file here in case it can help anyone else struggling with the same problem. Thanks for a great utility :-) version: '3'
# Checkout the backup software here: https://github.com/SavageSoftware/portainer-backup.git
services:
portainer-backup:
container_name: portainer-backup
image: savagesoftware/portainer-backup:latest
user: ${UID}:${GID}
restart: unless-stopped
command: schedule
environment:
TZ: Europe/London
PORTAINER_BACKUP_URL: "http://portainer:9000"
PORTAINER_BACKUP_TOKEN: "PORTAINER_ACCESS_TOKEN"
PORTAINER_BACKUP_PASSWORD: "xxx"
PORTAINER_BACKUP_OVERWRITE: 1
PORTAINER_BACKUP_SCHEDULE: "0 0 4 * * *"
PORTAINER_BACKUP_STACKS: 0
PORTAINER_BACKUP_DRYRUN: 0
PORTAINER_BACKUP_CONCISE: 1
PORTAINER_BACKUP_DIRECTORY: "/backup"
PORTAINER_BACKUP_FILENAME: "{{DATETIME}}-portainer-backup.tar.gz"
volumes:
- /etc/localtime:/etc/localtime:ro
- backup:/backup:rw
networks:
- portainer_default
volumes:
# Mount a CIFS folder on dixnas1.lan for backups
backup:
driver: local
driver_opts:
type: cifs
o: username=${BACKUP_USER},password=${BACKUP_PASSWD},rw,uid=${UID},gid=${GID},vers=3.0
device: "\\\\192.168.1.1\\DockerBackups\\Portainer"
networks:
portainer_default:
external: true |
I faced the same issue, my portainer uses a cert signer with my local root CA which is configured in the cert store of the server. I tried to map the local /etc/ssl/certs which contains my local root CA into the portainer-backup docker container, but no success. Seems that the backup software is not using the cert store from Alpine llinux. |
Any plans on supporting self signed certificates. Environment variables with rootCA path can be implemented. |
Thank you, the hint with the network helped me to get this running in my LAN. I first tried to add my local dns (--dns "MYDNSIP" ) which did not help either find my local portainer, although it's using let's encrypt certs. |
I've found a workaround for this issue.
Same goes for cli
|
yes, that worked!!! thanks a lot |
HI,
I was hoping to use your create little utility to run nightly backups of my portainer server, but it gives me the following error.
Do you only support http connections?
The text was updated successfully, but these errors were encountered: