Skip to content

Commit

Permalink
add git vm
Browse files Browse the repository at this point in the history
add the git.lib.princeton.edu vm to inventory
  • Loading branch information
kayiwa committed Oct 3, 2024
1 parent 79cd1c7 commit ac20b6c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions inventory/by_environment/production
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ prosody_production
pulcheck_production
pulfalight_production
pulfalight_production_workers
pulgit_production
pulmap_production
pulmirror_production
recap_production
Expand Down
42 changes: 42 additions & 0 deletions roles/nginxplus/files/conf/http/pulgit_prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Ansible managed
proxy_cache_path /data/nginx/pulgit/NGINX_cache/ keys_zone=pulgitcache:10m;

upstream pulgit {
zone pulgit 64k;
server git.lib.princeton.edu:443 resolve;
sticky learn
create=$upstream_cookie_pulgitcookie
lookup=$cookie_pulgitcookie
zone=pulgitclient_sessions:1m;
}

server {
listen 80;
server_name pulgit.lib.princeton.edu;

location / {
return 301 https://$server_name$request_uri;
}
}

server {
listen 443 ssl;
http2 on;
server_name pulgit.lib.princeton.edu;

ssl_certificate /etc/letsencrypt/live/pulgit.lib/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pulgit.lib/privkey.pem;
ssl_session_cache shared:SSL:1m;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://pulgit;
proxy_cache pulgitcache;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
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;
}
}

0 comments on commit ac20b6c

Please sign in to comment.