Compare commits

..

2 Commits

Author SHA1 Message Date
cspark 0f05f0c431 Nagios config, nextcloud config 2024-11-06 04:32:28 +00:00
cspark da3c49c045 Nagios config, nextcloud config 2024-11-06 04:31:49 +00:00
4 changed files with 39 additions and 17 deletions

View File

@ -56,9 +56,9 @@ AllowedIPs = 10.0.0.8/32
PersistentKeepalive = 25 PersistentKeepalive = 25
# Connection to backend server for icinga2 # Connection to backend server for nagios
[Peer] [Peer]
PublicKey = {{ icinga2_backend_pubkey }} PublicKey = {{ nagios_backend_pubkey }}
AllowedIPs = 10.0.0.198/32 AllowedIPs = 10.0.0.198/32
PersistentKeepalive = 25 PersistentKeepalive = 25

View File

@ -32,7 +32,7 @@ nextcloud_service_privkey: temp
matrix_service_privkey: temp matrix_service_privkey: temp
minecraft_service_privkey: temp minecraft_service_privkey: temp
kimai_service_privkey: temp kimai_service_privkey: temp
icinga2_backend_privkey: temp nagios_backend_privkey: temp
cockpit_backend_privkey: temp cockpit_backend_privkey: temp
user_privkey: temp user_privkey: temp
@ -45,7 +45,7 @@ nextcloud_service_pubkey: temp
matrix_service_pubkey: temp matrix_service_pubkey: temp
minecraft_service_pubkey: temp minecraft_service_pubkey: temp
kimai_service_pubkey: temp kimai_service_pubkey: temp
icinga2_backend_pubkey: temp nagios_backend_pubkey: temp
cockpit_backend_pubkey: temp cockpit_backend_pubkey: temp
user_pubkey: temp user_pubkey: temp

View File

@ -21,13 +21,20 @@ services:
- FIREWALL_INPUT_PORTS=11000,80,9000,6379,5432 - FIREWALL_INPUT_PORTS=11000,80,9000,6379,5432
# volumes: # volumes:
# Custom IPTables forwarding rules to forward TCP(web) traffic from port 11000 to port 80 # Custom IPTables forwarding rules to forward TCP(web) traffic from port 11000 to port 80
<<<<<<< HEAD
- ./post-rules.txt:/iptables/post-rules.txt
#ports:
# - "80:11000"
=======
# - ./post-rules.txt:/iptables/post-rules.txt # - ./post-rules.txt:/iptables/post-rules.txt
ports: ports:
- "80:11000" - "80:11000"
>>>>>>> 62bffc7d6ecfa5d2eee4efd93e29bcd8b5ff6d24
deploy: deploy:
limits: resources:
cpus: '0.10' limits:
memory: 512M cpus: '0.10'
memory: 512M
nextcloud-cache: nextcloud-cache:
network_mode: "service:nextcloud-gluetun" network_mode: "service:nextcloud-gluetun"
@ -37,9 +44,10 @@ services:
mem_reservation: 512m mem_reservation: 512m
command: redis-server --requirepass {{ service_nextcloud_postgres_pass }} command: redis-server --requirepass {{ service_nextcloud_postgres_pass }}
deploy: deploy:
limits: resources:
cpus: '0.10' limits:
memory: 2048M cpus: '0.10'
memory: 2048M
nextcloud-db: nextcloud-db:
network_mode: "service:nextcloud-gluetun" network_mode: "service:nextcloud-gluetun"
@ -53,9 +61,10 @@ services:
- POSTGRES_DB=nextcloud - POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud - POSTGRES_USER=nextcloud
deploy: deploy:
limits: resources:
cpus: '0.10' limits:
memory: 128M cpus: '0.10'
memory: 128M
nextcloud: nextcloud:
network_mode: "service:nextcloud-gluetun" network_mode: "service:nextcloud-gluetun"
@ -64,7 +73,7 @@ services:
# links: # links:
# - nextcloud-db # - nextcloud-db
volumes: volumes:
- ./nextcloud:/var/www/html - /nextcloud-data:/var/www/html
environment: environment:
- REDIS_HOST=127.0.0.1 - REDIS_HOST=127.0.0.1
- REDIS_HOST_PASSWORD={{ service_nextcloud_postgres_pass }} - REDIS_HOST_PASSWORD={{ service_nextcloud_postgres_pass }}
@ -78,7 +87,8 @@ services:
- OVERWRITEPROTOCOL=https - OVERWRITEPROTOCOL=https
- OVERWRITECLIURL=https://nextcloud.{{ domain_name }} - OVERWRITECLIURL=https://nextcloud.{{ domain_name }}
deploy: deploy:
limits: resources:
cpus: '0.25' limits:
memory: 512M cpus: '0.25'
memory: 512M

View File

@ -40,6 +40,18 @@ server {
return 301 $scheme://$host/remote.php/dav; return 301 $scheme://$host/remote.php/dav;
} }
location /.well-known/webfinger {
return 301 $scheme://$host/index.php/.well-known/webfinger;
}
location /.well-known/nodeinfo {
return 301 $scheme://$host/index.php/.well-known/nodeinfo;
}
location /ocm-provider {
return 301 $scheme://$host/index.php/ocm-provider;
}
} }
server { server {