wip
This commit is contained in:
parent
0d8127037d
commit
fe6d1777f3
15 changed files with 212 additions and 189 deletions
|
|
@ -23,18 +23,9 @@ provider "adguard" {
|
|||
|
||||
resource "adguard_rewrite" "argo_1" {
|
||||
domain = "argo.fuku"
|
||||
answer = "192.168.1.31"
|
||||
answer = "192.168.1.12"
|
||||
}
|
||||
|
||||
resource "adguard_rewrite" "argo_2" {
|
||||
domain = "argo.fuku"
|
||||
answer = "192.168.1.32"
|
||||
}
|
||||
|
||||
resource "adguard_rewrite" "argo_3" {
|
||||
domain = "argo.fuku"
|
||||
answer = "192.168.1.33"
|
||||
}
|
||||
resource "adguard_rewrite" "feeds" {
|
||||
domain = "feeds.roboces.dev"
|
||||
answer = "192.168.1.12"
|
||||
|
|
|
|||
|
|
@ -8,33 +8,11 @@ variable "app_slug" {
|
|||
type = string
|
||||
}
|
||||
|
||||
|
||||
variable "client_type" {
|
||||
type = string
|
||||
default = "confidential"
|
||||
|
||||
validation {
|
||||
condition = contains(["confidential", "public"], var.client_type)
|
||||
error_message = "client_type must be 'confidential' or 'public'"
|
||||
}
|
||||
}
|
||||
|
||||
variable "app_access_group_id" {
|
||||
description = "ID of a group which will have access to the app"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "sub_mode" {
|
||||
type = string
|
||||
default = "user_username"
|
||||
|
||||
validation {
|
||||
condition = contains(["user_id", "user_username", "hashed_user_id"], var.sub_mode)
|
||||
error_message = "sub_mode must be 'user_id', 'user_username' or 'hashed_user_id'"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
variable "open_in_new_tab" {
|
||||
type = bool
|
||||
description = "Open apps in a new tab"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue