forked from hiddify/Hiddify-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
33 lines (26 loc) · 1.38 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) 2019-2022 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
locals{
#site1= var.domain_name==""? format("https://%s.sslip.io/", oci_core_instance.app_instance[0].public_ip): format("https://%s/",var.domain_name)
site1= format("http://%s/", oci_core_instance.app_instance[0].public_ip )
site2= format("http://%s/", oci_core_instance.app_instance[0].public_ip )
#site2= format("http://%s/%s/config", oci_core_instance.app_instance[0].public_ip , local.guid)
}
output "proxy_url" {
value = local.site2
}
output "lb_proxy_url" {
value = local.site1
}
output "dev" {
value = "Made with \u2764 by Hiddify. Please wait for atleast 15 minutes to see the result. If you can see the webpage, it means that everything has been set up :D"
}
### Important Security Notice ###
# The private key generated by this resource will be stored unencrypted in your Terraform state file.
# Use of this resource for production deployments is not recommended.
# Instead, generate a private key file outside of Terraform and distribute it securely to the system where Terraform will be run.
output "generated_private_key_pem" {
value = var.generate_public_ssh_key ? tls_private_key.compute_ssh_key.private_key_pem : "No Keys Auto Generated"
sensitive = true
}