mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
22 lines
408 B
Plaintext
22 lines
408 B
Plaintext
|
# nginx config for running under /wayback/ prefix
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
# optinal: optimization to have nginx serve static assets
|
||
|
location /wayback/static {
|
||
|
alias /pywb/pywb/static;
|
||
|
}
|
||
|
|
||
|
# required: pywb with prefix
|
||
|
location /wayback/ {
|
||
|
resolver 127.0.0.1;
|
||
|
|
||
|
uwsgi_pass pywb:8081;
|
||
|
|
||
|
include uwsgi_params;
|
||
|
uwsgi_param UWSGI_SCHEME $scheme;
|
||
|
}
|
||
|
}
|
||
|
|