Struggle with install of AMP, letsencrypt just dont play well with nginx

OS Name/Version: Arch Linux (rolling no version)

Product Name/Version: (Always use the full version number - not ‘Latest’) 2.7.2.8 - 20260520.1

Problem Description:

Cant install amp with ssl, got it running without ssl but when i do the post install it fails again, its cerbot installing the certificate into nginx that fails. Al so nginx failed hard before i added some directories into the etc directory.

Steps to reproduce:

  • install arch linux minimal (w/headers and some extras to get all modules)
  • install amp with script

Actions taken to resolve so far:
Tried without https and that worked but cant host outside of local net.
Tried misc nginx setups afterwards but i got the certificate but it wont install into nginxs so install fails.

Considering skipping nginx and doing my own setup of caddy which removes all the horrible cerbot stuff. Just need to know if there are details i need to be aware of before i do so.

EDIT:
Ok it seems to work but ofc its good to check.

I removed nginx and cerbot and blocked 8080 and added it to local interface only, then setup caddy with reverse proxy to 8080 for the domain, and it magically fix the letsencrypt in the background, and woala it works.

Perhaps a suggestion to change to caddy for linux atleast as it makes thing quite a bit easier, but ofcourse, not for the catchyas, please inform me what i am not aware of :smiley: