-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10151 from internetarchive/fix-nginx-logs
Switch to using NJS for nginx IP anonymization
- Loading branch information
Showing
6 changed files
with
33 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
|
||
apt-get update | ||
|
||
# log rotation service for ol-nginx | ||
# rsync service for pulling monthly sitemaps from ol-home0 to ol-www0 | ||
apt-get install -y --no-install-recommends curl \ | ||
logrotate \ | ||
rsync \ | ||
lsb-release | ||
|
||
# Add the NGINX signing key + Repo | ||
curl -fsSL https://nginx.org/keys/nginx_signing.key | tee /usr/share/keyrings/nginx-keyring.asc | ||
echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.asc] http://nginx.org/packages/debian $(lsb_release -cs) nginx" \ | ||
> /etc/apt/sources.list.d/nginx.list | ||
|
||
# Install nginx and the NJS module | ||
apt-get update | ||
apt-get install -y --no-install-recommends nginx nginx-module-njs letsencrypt |
This file was deleted.
Oops, something went wrong.