{
	auto_https disable_redirects
}

# Using WebIQ Designer ctrlX license
# ctrlX CORE (192.168.1.1) show published project
127.0.0.1:8081, localhost:8081 {
	# redirect to webIQ server with port fowarding
	handle_path /webiq/cx/* {
		# use https://localhost:8081/webiq/<project_folder>/
		# "/" MUST be entered at end of URL
		# ToDo: Adapt IP 192.168.1.1 to your IP address 
		reverse_proxy http://192.168.1.1:10123
	}

	route * {
		reverse_proxy {
			# ToDo: Adapt IP to your IP address 
			to https://192.168.1.1:443
			transport http {
				tls
				tls_insecure_skip_verify
			}
		}
	}
}

# Using WebIQ Designer ctrlX license
# ctrlX CORE (192.168.1.1) show workspace project by browser preview
127.0.0.1:8082, localhost:8082 {
	# redirect to webIQ server with port fowarding
	handle_path /webiq/cx/* {
		# use https://localhost:8081/webiq/<project-name>
		# "/" MUST be entered at end of URL
		# ToDo: Adapt port if you changed the default port 10124 
		reverse_proxy http://localhost:10124
	}

	route * {
		reverse_proxy {
			# change URL to your ctrlX
			# ToDo: Adapt IP 192.168.1.1 to your IP address    
			to https://192.168.1.1:443
			transport http {
				tls
				tls_insecure_skip_verify
			}
		}
	}
}

# Using WebIQ Designer Pc license
# ctrlX CORE (virtual) show workspace project by browser preview
127.0.0.1:8080, localhost:8080 {
	handle_path /webiq/pc/* {
		# use https://localhost:8080/webiq/pc
		# "/" MUST be entered at end of URL
		# ToDo: Adapt port if you changed the default port 10124 
				reverse_proxy {
			to http://localhost:10130
		}
	}

	route * {
		reverse_proxy {
			# ToDo: Adapt IP to your IP address 
			to https://127.0.0.1:8443
			transport http {
				tls
				tls_insecure_skip_verify
			}
		}
	}
}
