]> git.proxmox.com Git - proxmox-acme.git/commitdiff
Create the plugin config.
authorWolfgang Link <w.link@proxmox.com>
Tue, 7 Apr 2020 08:40:02 +0000 (10:40 +0200)
committerWolfgang Link <w.link@proxmox.com>
Wed, 15 Apr 2020 15:48:14 +0000 (17:48 +0200)
At the moment, Proxmox has two different configurations that require different properties.
DNSChallange requires credentials for the DNSAPI.
Standalone has no settings because Letsencrypt only supports port 80 with the http-01 challenge.
This configuration is registered in the pve-manager.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
src/PVE/ACME/StandAlone.pm

index f48d6383b98065b3794f555eb570373e858b3020..0b4aaae0cd9618077a882bb7562d7bcf88e0e909 100644 (file)
@@ -12,6 +12,27 @@ sub supported_challenge_types {
     return { 'http-01' => 1 };
 }
 
     return { 'http-01' => 1 };
 }
 
+sub type {
+    return 'standalone';
+}
+
+sub properties {
+    return {};
+}
+
+sub options {
+    return {
+       nodes => { optional => 1 },
+       disable => { optional => 1 },
+    };
+}
+
+sub extract_challenge {
+    my ($self, $challenge) = @_;
+
+    return PVE::ACME::Challenge->extract_challenge($challenge, 'http-01');
+}
+
 sub setup {
     my ($class, $acme, $authorization) = @_;
 
 sub setup {
     my ($class, $acme, $authorization) = @_;