mirror of
https://asciireactor.com/otho/stashbox
synced 2024-11-22 02:05:08 +00:00
Separate interfaces and DNS updates.
This commit is contained in:
parent
35d8849e1e
commit
fb224b361e
@ -1,7 +1,9 @@
|
|||||||
|
ServerName othostash.com
|
||||||
|
ServerRoot /usr/local
|
||||||
|
|
||||||
ServerRoot "/usr/local"
|
Listen [2603:3015:1003:566d::dad:db]:80
|
||||||
|
Listen [2603:3015:1003:566d::dad:db]:443
|
||||||
Listen 443
|
Listen 10.1.9.10:443
|
||||||
|
|
||||||
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
|
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
|
||||||
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
|
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
|
||||||
@ -49,9 +51,20 @@ Group www
|
|||||||
Require all denied
|
Require all denied
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
MDomain othostash.com
|
MDCertificateAgreement accepted
|
||||||
|
MDContactEmail admin@othostash.com
|
||||||
|
MDomain othostash.com www.othostash.com
|
||||||
|
|
||||||
#<VirtualHost 10.1.9.10:443>
|
# <VirtualHost [2603:3015:1003:566d::dad:feed]:443>
|
||||||
|
# ServerName "plex.othostash.com"
|
||||||
|
# SSLEngine on
|
||||||
|
# ProxyPass "/" "http://localhost:32400"
|
||||||
|
# ProxyPassReverse "/" "http://localhost:32400"
|
||||||
|
# </VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost 10.1.9.10:443 [2603:3015:1003:566d::dad:db]:443>
|
||||||
|
ServerName "www.othostash.com"
|
||||||
|
ServerName "othostash.com"
|
||||||
|
|
||||||
<Location "/md-status">
|
<Location "/md-status">
|
||||||
SetHandler md-status
|
SetHandler md-status
|
||||||
@ -80,8 +93,8 @@ DocumentRoot "/data"
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /usr/local/etc/apache24/fullchain.pem
|
# SSLCertificateFile /usr/local/etc/apache24/fullchain.pem
|
||||||
SSLCertificateKeyFile /usr/local/etc/apache24/privkey.pem
|
# SSLCertificateKeyFile /usr/local/etc/apache24/privkey.pem
|
||||||
|
|
||||||
ErrorLog "/var/log/httpd-error.log"
|
ErrorLog "/var/log/httpd-error.log"
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
@ -118,6 +131,8 @@ LogLevel warn
|
|||||||
AddType application/x-gzip .gz .tgz
|
AddType application/x-gzip .gz .tgz
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
<IfModule ssl_module>
|
<IfModule ssl_module>
|
||||||
SSLRandomSeed startup builtin
|
SSLRandomSeed startup builtin
|
||||||
SSLRandomSeed connect builtin
|
SSLRandomSeed connect builtin
|
||||||
|
37
dns.tf
37
dns.tf
@ -18,22 +18,47 @@ terraform {
|
|||||||
|
|
||||||
provider "namecheap" {}
|
provider "namecheap" {}
|
||||||
|
|
||||||
variable "stashbox-vip" {
|
variable "network" {
|
||||||
type = string
|
type = string
|
||||||
default = "stashbox.delhi.o4data.net."
|
default = "2603:3015:1003:566d"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "ipv4" {
|
||||||
|
type = string
|
||||||
|
default = "96.78.236.124"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "namecheap_domain_records" "othostash" {
|
resource "namecheap_domain_records" "othostash" {
|
||||||
domain = "othostash.com"
|
domain = "othostash.com"
|
||||||
record {
|
record {
|
||||||
hostname = "@"
|
hostname = "@"
|
||||||
address = var.stashbox-vip
|
address = "${var.network}::dad:db"
|
||||||
type = "ALIAS"
|
type = "AAAA"
|
||||||
ttl = 300
|
}
|
||||||
|
record {
|
||||||
|
hostname = "feed"
|
||||||
|
address = "${var.network}::dad:feed"
|
||||||
|
type = "AAAA"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = "www"
|
hostname = "www"
|
||||||
address = "othostash.com."
|
address = "othostash.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
|
record {
|
||||||
|
hostname = "plex"
|
||||||
|
address = "feed.othostash.com"
|
||||||
|
type = "CNAME"
|
||||||
|
}
|
||||||
|
|
||||||
|
record {
|
||||||
|
hostname = "@"
|
||||||
|
address = var.ipv4
|
||||||
|
type = "A"
|
||||||
|
}
|
||||||
|
record {
|
||||||
|
hostname = "feed"
|
||||||
|
address = var.ipv4
|
||||||
|
type = "A"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user