mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #16923 from overleaf/jpa-server-pro-fs-rebranding
[server-pro] remove ShareLaTeX branding from filesystem GitOrigin-RevId: c1d2c63bdc888d81e03bb1721e44b6ed6f64524b
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# Changes to the above:
|
||||
# - added debug header
|
||||
# - remove CORS rules, Server-CE/Server-Pro runs behind a single origin
|
||||
# - change /output path to /var/lib/sharelatex/data/output
|
||||
# - change /output path to /var/lib/overleaf/data/output
|
||||
|
||||
server {
|
||||
# Extra header for debugging.
|
||||
@@ -31,31 +31,31 @@ server {
|
||||
}
|
||||
# handle output files for specific users
|
||||
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.([a-z]+)$ {
|
||||
alias /var/lib/sharelatex/data/output/$1-$2/generated-files/$3/output.$4;
|
||||
alias /var/lib/overleaf/data/output/$1-$2/generated-files/$3/output.$4;
|
||||
}
|
||||
# handle .blg files for specific users
|
||||
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)\.blg$ {
|
||||
alias /var/lib/sharelatex/data/output/$1-$2/generated-files/$3/$4.blg;
|
||||
alias /var/lib/overleaf/data/output/$1-$2/generated-files/$3/$4.blg;
|
||||
}
|
||||
# handle output files for anonymous users
|
||||
location ~ ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.([a-z]+)$ {
|
||||
alias /var/lib/sharelatex/data/output/$1/generated-files/$2/output.$3;
|
||||
alias /var/lib/overleaf/data/output/$1/generated-files/$2/output.$3;
|
||||
}
|
||||
# handle .blg files for anonymous users
|
||||
location ~ ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)\.blg$ {
|
||||
alias /var/lib/sharelatex/data/output/$1/generated-files/$2/$3.blg;
|
||||
alias /var/lib/overleaf/data/output/$1/generated-files/$2/$3.blg;
|
||||
}
|
||||
|
||||
# PDF range for specific users
|
||||
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/content/([0-9a-f-]+/[0-9a-f]+)$ {
|
||||
# Cache for one day
|
||||
expires 1d;
|
||||
alias /var/lib/sharelatex/data/output/$1-$2/content/$3;
|
||||
alias /var/lib/overleaf/data/output/$1-$2/content/$3;
|
||||
}
|
||||
# PDF range for anonymous users
|
||||
location ~ ^/project/([0-9a-f]+)/content/([0-9a-f-]+/[0-9a-f]+)$ {
|
||||
# Cache for one day
|
||||
expires 1d;
|
||||
alias /var/lib/sharelatex/data/output/$1/content/$2;
|
||||
alias /var/lib/overleaf/data/output/$1/content/$2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,5 +68,5 @@ server {
|
||||
}
|
||||
|
||||
# Load any extra configuration for this vhost
|
||||
include /etc/nginx/vhost-extras/sharelatex/*.conf;
|
||||
include /etc/nginx/vhost-extras/overleaf/*.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user