feat: Implement MariaDB and backup job modules with configuration and secrets management
This commit is contained in:
@@ -78,7 +78,7 @@ resource "kubernetes_secret" "gitea_mail_credentials" {
|
|||||||
# Setup MariaDB database
|
# Setup MariaDB database
|
||||||
#
|
#
|
||||||
module "gitea_database" {
|
module "gitea_database" {
|
||||||
source = "./modules/k8s_mariadb"
|
source = "../modules/k8s_mariadb"
|
||||||
|
|
||||||
namespace = kubernetes_namespace.gitea.metadata[0].name
|
namespace = kubernetes_namespace.gitea.metadata[0].name
|
||||||
app_name = "gitea"
|
app_name = "gitea"
|
||||||
@@ -97,7 +97,7 @@ module "gitea_database" {
|
|||||||
# Setup rsync backup job to scaleway bucket
|
# Setup rsync backup job to scaleway bucket
|
||||||
#
|
#
|
||||||
module "gitea_backup" {
|
module "gitea_backup" {
|
||||||
source = "./modules/scw_backup_job"
|
source = "../modules/scw_backup_job"
|
||||||
|
|
||||||
namespace = kubernetes_namespace.gitea.metadata[0].name
|
namespace = kubernetes_namespace.gitea.metadata[0].name
|
||||||
app_name = "gitea"
|
app_name = "gitea"
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ resource "kubernetes_manifest" "mail_certificate" {
|
|||||||
|
|
||||||
module "mail_backup" {
|
module "mail_backup" {
|
||||||
|
|
||||||
source = "./modules/scw_backup_job"
|
source = "../modules/scw_backup_job"
|
||||||
|
|
||||||
namespace = kubernetes_namespace.mail.metadata[0].name
|
namespace = kubernetes_namespace.mail.metadata[0].name
|
||||||
app_name = "mail"
|
app_name = "mail"
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ resource "kubernetes_config_map" "nextcloud_apache_config" {
|
|||||||
# Setup MariaDB database
|
# Setup MariaDB database
|
||||||
#
|
#
|
||||||
module "nextcloud_database" {
|
module "nextcloud_database" {
|
||||||
source = "./modules/k8s_mariadb"
|
source = "../modules/k8s_mariadb"
|
||||||
|
|
||||||
namespace = kubernetes_namespace.nextcloud.metadata[0].name
|
namespace = kubernetes_namespace.nextcloud.metadata[0].name
|
||||||
app_name = "nextcloud"
|
app_name = "nextcloud"
|
||||||
@@ -174,7 +174,7 @@ module "nextcloud_database" {
|
|||||||
#
|
#
|
||||||
module "nextcloud_backup" {
|
module "nextcloud_backup" {
|
||||||
|
|
||||||
source = "./modules/scw_backup_job"
|
source = "../modules/scw_backup_job"
|
||||||
|
|
||||||
namespace = kubernetes_namespace.nextcloud.metadata[0].name
|
namespace = kubernetes_namespace.nextcloud.metadata[0].name
|
||||||
app_name = "nextcloud"
|
app_name = "nextcloud"
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 8080;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_comp_level 9;
|
|
||||||
gzip_types
|
|
||||||
text/html
|
|
||||||
text/plain
|
|
||||||
text/css
|
|
||||||
text/js
|
|
||||||
text/xml
|
|
||||||
text/javascript
|
|
||||||
application/javascript
|
|
||||||
application/json
|
|
||||||
application/xml
|
|
||||||
application/rss+xml
|
|
||||||
image/svg+xml;
|
|
||||||
|
|
||||||
root /tmp/site;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
index index.html index.htm;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* ^/([^/]+) {
|
|
||||||
index index.html index.htm;
|
|
||||||
error_page 404 = @error;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
|
||||||
location @error {
|
|
||||||
try_files /$1/404.html /404.html =404;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
worker_processes auto;
|
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log notice;
|
|
||||||
pid /tmp/nginx.pid;
|
|
||||||
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
http {
|
|
||||||
proxy_temp_path /tmp/proxy_temp;
|
|
||||||
client_body_temp_path /tmp/client_temp;
|
|
||||||
fastcgi_temp_path /tmp/fastcgi_temp;
|
|
||||||
uwsgi_temp_path /tmp/uwsgi_temp;
|
|
||||||
scgi_temp_path /tmp/scgi_temp;
|
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
|
||||||
|
|
||||||
include /etc/nginx/conf.d/*.conf;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user