Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy pass template #2776

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions roles/libwww/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
</Directory>
notify: restart apache


########### Drupal Start ######
# Drupal after this

Expand Down Expand Up @@ -84,7 +83,7 @@
notify: restart apache

- name: libwww | ensure MaxRequestWorkers is set for system use
lineinfile:
template:
dest: "/etc/apache2/mods-available/mpm_prefork.conf"
regexp: "\\s*MaxRequestWorkers\\s*150"
line: "\tMaxRequestWorkers\t 388"
Expand Down
131 changes: 3 additions & 128 deletions roles/libwww/templates/proxy_pass_rules.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,131 +4,6 @@ RewriteEngine on
RewriteCond %{HTTP_HOST} !^library.princeton.edu$
RewriteRule (.*) https://library.princeton.edu$1 [R=301,L]

## For NJMAPS
ProxyPass /njmaps http://libphp-prod.princeton.edu/njmaps
ProxyPassReverse /njmaps http://libphp-prod.princeton.edu/njmaps

## Photoduplication Quoting System
# ProxyPass /photoduplication/ http://libwebdev.princeton.edu/photoduplication/
# ProxyPassReverse /photoduplication/ http://libwebdev.princeton.edu/photoduplication/

### For Video Reserves
ProxyPass /hrc/ http://libphp-dev.princeton.edu/hrc/
ProxyPassReverse /hrc/ http://libphp-dev.princeton.edu/hrc/

### For East Asian Library
ProxyPass /eastasian/robe http://libphp-prod.princeton.edu/eastasian/robe
ProxyPassReverse /eastasian/robe http://libphp-prod.princeton.edu/eastasian/robe

## Front Matter
ProxyPass /eastasian/frontmatter http://libphp-prod.princeton.edu/eastasian/frontmatter
ProxyPassReverse /eastasian/frontmatter http://libphp-prod.princeton.edu/eastasian/frontmatter

### For East Asian Library
ProxyPass /eastasian/nadlLogin http://libphp-prod.princeton.edu/eastasian/nadlLogin
ProxyPassReverse /eastasian/nadlLogin http://libphp-prod.princeton.edu/eastasian/nadlLogin

## For East Asian Library
ProxyPass /eastasian/newtitles http://libphp-prod.princeton.edu/eastasian/newtitles
ProxyPassReverse /eastasian/newtitles http://libphp-prod.princeton.edu/eastasian/newtitles

## Staff EAL
ProxyPass /eastasian/stafftools http://libphp-prod.princeton.edu/eastasian/stafftools
ProxyPassReverse /eastasian/stafftools http://libphp-prod.princeton.edu/eastasian/stafftools

## For East Asian Library
ProxyPass /eastasian/oclcpinyin http://libphp-prod.princeton.edu/eastasian/oclcpinyin
ProxyPassReverse /eastasian/oclcpinyin http://libphp-prod.princeton.edu/eastasian/oclcpinyin

## For East Asian Library
ProxyPass /eastasian/diglib http://libphp-prod.princeton.edu/eastasian/diglib
ProxyPassReverse /eastasian/diglib http://libphp-prod.princeton.edu/eastasian/diglib

## For East Asian Library
ProxyPass /eastasian/assets http://libphp-prod.princeton.edu/eastasian/assets/
ProxyPassReverse /eastasian/assets http://libphp-prod.princeton.edu/eastasian/assets/

### EAL
ProxyPass /eastasian/EALJ http://libphp-prod.princeton.edu/eastasian/EALJ
ProxyPassReverse /eastasian/EALJ http://libphp-prod.princeton.edu/eastasian/EALJ

### EAL
ProxyPass /eastasian/shadowfigures http://libphp-prod.princeton.edu/eastasian/shadowfigures
ProxyPassReverse /eastasian/shadowfigures http://libphp-prod.princeton.edu/eastasian/shadowfigures

## Romanizer
ProxyPass /eastasian/korroman/KoreanNameRomanizer.zip http://libphp-prod.princeton.edu/eastasian/korroman/KoreanNameRomanizer.zip
ProxyPassReverse /eastasian/korroman/KoreanNameRomanizer.zip http://libphp-prod.princeton.edu/eastasian/korroman/KoreanNameRomanizer.zip
ProxyPass /locator/ http://libwebprod.princeton.edu/locator/
ProxyPassReverse /locator/ http://libwebprod.princeton.edu/locator/

ProxyPass /illiad/ https://lib-illiad.princeton.edu/illiad/
ProxyPassReverse /illiad/ https://lib-illiad.princeton.edu/illiad/

ProxyPass /aeon/ https://lib-aeon.princeton.edu/aeon/
ProxyPassReverse /aeon/ https://lib-aeon.princeton.edu/aeon/

ProxyPass /AeonBibRequest/ https://lib-aeon.princeton.edu/AeonBibRequest/
ProxyPassReverse /AeonBibRequest/ https://lib-aeon.princeton.edu/AeonBibRequest/

# For Restricted Databases (legacy)
ProxyPass /dbrestricted http://libwebprod.princeton.edu/dbrestricted
ProxyPassReverse /dbrestricted http://libwebprod.princeton.edu/dbrestricted

ProxyPass /resolve/lookup http://libphp-prod.princeton.edu/resolve/lookup
ProxyPassReverse /resolve/lookup http://libphp-prod.princeton.edu/resolve/lookup

## for byzantine
ProxyPass /byzantine http://libphp-prod.princeton.edu/byzantine
ProxyPassReverse /byzantine http://libphp-prod.princeton.edu/byzantine

# for requests and locator
ProxyPass /locator http://libwebprod.princeton.edu/resolve/locator
ProxyPassReverse /locator http://libwebprod.princeton.edu/locator

ProxyPass /requests http://libwebprod.princeton.edu/requests
ProxyPassReverse /requests http://libwebprod.princeton.edu/requests

#ProxyPass /catalogs/restricted http://libserv39.princeton.edu/catalogs/restricted
#ProxyPassReverse /catalogs/restricted http://libserv39.princeton.edu/catalogs/restricted

# Papyrus
ProxyPass /papyrus http://libserv39.princeton.edu/papyrus/
ProxyPassReverse /papyrus http://libserv39.princeton.edu/papyrus/

# OLD RBSC Stuff
ProxyPass /libraries/firestone/rbsc http://libserv39.princeton.edu/libraries/firestone/rbsc
ProxyPassReverse /libraries/firestone/rbsc http://libserv39.princeton.edu/libraries/firestone/rbsc

# For RePEc
ProxyPass /econlib/RePEc/pri http://libruby-prod.princeton.edu/econlib/RePEc/pri
ProxyPassReverse /econlib/RePEc/pri http://libruby-prod.princeton.edu/econlib/RePEc/pri

# For ancient images
ProxyPass /images/ http://libserv39.princeton.edu/images/
ProxyPassReverse /images/ http://libserv39.princeton.edu/images/

## For lib-dbserver migration
ProxyPass /AssignedSpaceApplication https://lib-dbserver.princeton.edu/AssignedSpaceApplication
ProxyPassReverse /AssignedSpaceApplication https://lib-dbserver.princeton.edu/AssignedSpaceApplication

ProxyPass /AssignedSpaces https://lib-dbserver.princeton.edu/AssignedSpaces
ProxyPassReverse /AssignedSpaces https://lib-dbserver.princeton.edu/AssignedSpaces

ProxyPass /E-Series https://lib-dbserver.princeton.edu/E-Series
ProxyPassReverse /E-Series https://lib-dbserver.princeton.edu/E-Series

ProxyPass /PreservationTracking https://lib-dbserver.princeton.edu/PreservationTracking
ProxyPassReverse /PreservationTracking https://lib-dbserver.princeton.edu/PreservationTracking

ProxyPass /RBVisuals https://lib-dbserver.princeton.edu/RBVisuals
ProxyPassReverse /RBVisuals https://lib-dbserver.princeton.edu/RBVisuals

ProxyPass /shib http://libphp-prod.princeton.edu/shib
ProxyPassReverse /shib http://libphp-prod.princeton.edu/shib

ProxyPass /scripts http://libphp-prod.princeton.edu/scripts
ProxyPassReverse /scripts http://libphp-prod.princeton.edu/scripts

ProxyPass /style http://libserv39.princeton.edu/style
ProxyPassReverse /style http://libserv39.princeton.edu/style
## "{{ proxy_and_reverse_proxy.Name }}"
ProxyPass "{{ proxy_and_reverse_proxy.src }}" "{{ proxy_and_reverse_proxy.dest }}"
ProxyPassReverse "{{ proxy_and_reverse_proxy.src }}" "{{ proxy_and_reverse_proxy.dest }}"
31 changes: 0 additions & 31 deletions roles/nginxplus/files/conf/http/templates/dss-proxy-pass.conf

This file was deleted.

This file was deleted.

Loading