Comments (4)
Yes, but It hasn't been on my priority because we use purchased SSL in our Production.
Something like this? https://forum.vestacp.com/viewtopic.php?f=19&t=13057
Lets brainstorm. Problem is, we do not know the domain that Vesta will be using. Should we request a docker environment variable for this domain/hostname or $VESTA_DOMAIN?
The init script would check:
- if exists $VESTA_DOMAIN, setup domain on the admin account and acquire Letsencrypt SSL.
- link the SSL to vesta admin and exim4.
- link for any other service that require the SSL too?
Someone has to test this feature since I don't really use Vesta for email.
from vestacp.
Maybe we could reuse the hostname provided to start the docker container.
My main purpose for this container is running a mail server in docker.
Unfortunately it's not (easily) possible to change the hostname of a docker container while running it. But you can provide an own hostname during startup which solves this problem.
Therefore, we could just fallback to the hostname and have a $VESTA_DOMAIN in case someone wants to overwrite it with another value.
What do you think?
As an example for the hostname, here is my docker-compose.yml:
vestacp:
container_name: vestacp
hostname: my-domain.com
image: niiknow/vestacp
restart: always
ports:
- "25:25"
- "110:110"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
- "995:995"
- "8083:8083"
expose:
- "80"
volumes:
- /opt/data/mail/vestacp/vesta:/vesta:rw
- /opt/data/mail/vestacp/home:/home:rw
- /opt/data/mail/vestacp/backup:/backup:rw
from vestacp.
Done, here's the script: https://github.com/niiknow/vestacp/blob/master/files/sysprepz/admin/bin/vesta-auto-ssl.sh
I've added $VESTA_DOMAIN
See example here: https://github.com/niiknow/vestacp/blob/master/docker-compose.yml
While testing, I discover a bug and patched: https://github.com/niiknow/vestacp/blob/master/Dockerfile#L360
Reported here: outroll/vesta#1253
from vestacp.
Nice! Thank you for implementing it!
from vestacp.
Related Issues (20)
- Connection closed by server with exitcode 1 HOT 1
- Vesta FileManager see bad with GoogleChrome HOT 1
- 1cpu and 733m of ram - it kills the system HOT 1
- can not install and update plugin wordpress HOT 3
- iptables module did not work
- What are the supported OS? HOT 1
- Apache2 Start Failed due to Lacks of php7.1.so HOT 2
- vesta-auto-ssl exit due to invalid/default docker hostname: 845ddjgdgjd23
- letsencrypt error for alias
- phpmyadmin is 404 (not found) HOT 1
- Error in building from docker file
- Letsencrypt connections randomly fails HOT 1
- Fail2Ban Issue
- mydomain.com:5001 to mydomain.com using custom nginx.conf HOT 4
- phpmyadmin error 404 HOT 2
- arm architecture
- [Question] How to reset Apache2 Template? HOT 10
- [Feature Request] Adding WebP Support for ImageMagick
- Support Kubernetes?
- In new design (1.0.0) functionality disappeared remote backup.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vestacp.