MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.89k stars 498 forks source link

DietPi-LetsEncrypt | certbot fails for any webservice other than `/var/www/` #5728

Open nuke-web3 opened 2 years ago

nuke-web3 commented 2 years ago

Creating a bug report/issue

Required Information

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

Additional Information (if applicable)

Steps to reproduce

  1. try to use dietpi-letsencrypt manually
  2. fails with:
    
    Performing the following challenges:
    http-01 challenge for some.site.com
    Using the webroot path /var/www for all unmatched domains.
    Waiting for verification...
    Challenge failed for domain some.site.com
    http-01 challenge for some.site.com
    Cleaning up challenges
    Some challenges have failed.

IMPORTANT NOTES:

Expected behaviour

Actual behaviour

Extra details

Joulinar commented 2 years ago

Thx for highlighting this. At the moment this works as designed as we hardcode the web root dir inside our script

https://github.com/MichaIng/DietPi/blob/747ad2211c438fe7607aa522dd2e038a7856c646/dietpi/dietpi-letsencrypt#L87

Therefore, I marked your issue as feature request to improve the behavior.