Sander0542 / terraform-provider-nginxproxymanager

Terraform Provider for Nginx Proxy Manager
https://registry.terraform.io/providers/Sander0542/nginxproxymanager
MIT License
18 stars 1 forks source link

ProxyHost.ssl_forced error after upgrading from 0.0.33 to 0.0.36 #143

Open m1xxos opened 1 week ago

m1xxos commented 1 week ago

I am getting an error - ProxyHost.ssl_forced after updating provider version to 0.0.36

Error message

terraform plan

Error: Error reading proxy host
│
│   with nginxproxymanager_proxy_host.home_proxy,
│   on proxy.tf line 74, in resource "nginxproxymanager_proxy_host" "home_proxy":
│   74: resource "nginxproxymanager_proxy_host" "home_proxy" {
│
│ Could not read proxy host, unexpected error: json: cannot unmarshal number into Go struct field ProxyHost.ssl_forced of type bool

My configuration

resource "nginxproxymanager_proxy_host" "home_proxy" {
  domain_names            = ["*.home.<domain>.me", "home.<domain>.me"]
  forward_host            = "192.168.1.99"
  forward_port            = 443
  forward_scheme          = "https"
  allow_websocket_upgrade = true
  block_exploits          = true
  ssl_forced              = true
  http2_support           = true
  hsts_enabled            = true
  certificate_id          = 11
}

I am able to go back to version 0.0.33 and do a plan without errors Thank you for your work on this provider!

Sander0542 commented 6 days ago

Hello, which version of Nginx Proxy Manager are you using? You should upgrade to at least version v2.12. Support for v2.11 or lower has been removed in this release

m1xxos commented 4 days ago

I was at 2.11 version. After upgrading to 2.12 i can use new provider version Thank you!