e6e85b00f7
- Added getmail configuration generation using template files. - Introduced postfix and dovecot configuration checksums for deployment. - Created new dovecot configuration file and sieve script for email handling. - Updated main.tf to utilize local variables for configuration management. - Removed redundant external password hasher from main.tf. feat(nginx): improve nginx configuration management - Centralized nginx configuration into a local variable with checksum. - Created separate config maps for default website configurations. - Updated deployment to utilize new configuration structure. feat(sftpgo): add SFTPGo application deployment - Introduced SFTPGo with Kubernetes resources including namespace, config maps, and secrets. - Configured SFTPGo with SMTP settings and AWS credentials. - Implemented health checks and volume mounts for persistent storage. refactor(seafile): remove Seafile module - Deleted Seafile module and associated resources as part of cleanup.
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
server {
|
|
listen 8080;
|
|
server_name localhost;
|
|
root /tmp/site;
|
|
|
|
resolver kube-dns.kube-system.svc.cluster.local valid=10s;
|
|
|
|
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;
|
|
|
|
location ^~ /storage {
|
|
proxy_pass http://http.sftpgo.svc.cluster.local:8080/storage;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|