-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into nginx-apache-exporters
- Loading branch information
Showing
24 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# ENV file called by [email protected] | ||
# This is for website archiving of openfoodfacts.org | ||
MATOMO_OPTIONS="--force-idsites=2 --concurrent-archivers=0" | ||
# Note: comma is mandatory for --force-idsites to be taken into account correctly | ||
MATOMO_OPTIONS="--force-idsites=2, --concurrent-archivers=0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# ENV file called by [email protected] | ||
# This is for generating archive of mobile app | ||
MATOMO_OPTIONS="--force-idsites=5 --concurrent-archivers=0" | ||
# Note: comma is mandatory for --force-idsites to be taken into account correctly | ||
MATOMO_OPTIONS="--force-idsites=5, --concurrent-archivers=0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ENV file called by [email protected] | ||
# This is for main archive generation, that is excluding specific high traffic services | ||
MATOMO_OPTIONS="--skip-idsites 5,2 --concurrent-archivers=0" | ||
MATOMO_OPTIONS="--skip-idsites=5,2 --concurrent-archivers=0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[Unit] | ||
OnFailure=email-failures@mariadb-%H.service | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[Unit] | ||
[email protected]-%H.service | ||
[email protected] | ||
|
6 changes: 5 additions & 1 deletion
6
confs/off2-reverse-proxy/systemd/system/nginx.service.d/override.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[Service] | ||
# let nginx refine this | ||
LimitNOFILE=65535 | ||
|
||
[Unit] | ||
[email protected] | ||
Restart=always | ||
Restart=always |
3 changes: 3 additions & 0 deletions
3
confs/off2-reverse-proxy/systemd/system/prometheus-nginx-exporter.service.d/override.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Service] | ||
# ONLY listen on 127.0.0.1 for security reasons | ||
Environment="LISTEN_ADDRESS=127.0.0.1:9113" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This enables prometheus exporter to get data from nginx | ||
server { | ||
listen 127.0.0.1:8080; | ||
stub_status on; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ I add a problem running `ct_postinstall` as it wasn't able to fetch debian archi | |
I then simply install `nginx` and `stunnel4` using apt. | ||
I also [configure postfix](../mail#postfix-configuration) and tested it. | ||
I also [configure postfix](../mail.md#postfix-configuration) and tested it. | ||
### Adding the IP | ||
|
@@ -288,7 +288,7 @@ sudo rsync --info=progress2 -a -x 10.0.0.1:/srv/opff/html/images/products /zfs- | |
``` | ||
this took 12 minutes. | ||
|
||
Then I sync to ovh3 (see also below [sanoid usage](#sanoid)): | ||
Then I sync to ovh3 (see also below [sanoid usage](#snapshots-and-syncs-with-sanoid)): | ||
|
||
```bash | ||
time sudo syncoid --no-sync-snap zfs-hdd/opff/images [email protected]:rpool/opff/images | ||
|
@@ -504,7 +504,7 @@ I also did it for the data and cache dataset: | |
I created a CT followings [How to create a new Container](../proxmox.md#how-to-create-a-new-container) it went all smooth. | ||
I choosed a 30Gb disk, 0B swap, 4 Cores and 6 Gb memory. | ||
I also [configure postfix](../mail#postfix-configuration) and tested it. | ||
I also [configure postfix](../mail.md#postfix-configuration) and tested it. | ||
### Installing packages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ I also [configured email](../mail.md#postfix-configuration) in the container. | |
|
||
## Setting up stunnel on ovh1 stunnel-client | ||
|
||
Did the same as above to [set up stunnel on ovh1 proxy](./#setting-up-stunnel-on-off1-proxy). | ||
Did the same as above to [set up stunnel on ovh1 proxy](#setting-up-stunnel-on-off1-proxy). | ||
|
||
I created a key with `ssh-keygen -t ed25519 -C "[email protected]"` | ||
add it as a deploy key to this projects | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters