Merge pull request #184 from ONLYOFFICE/feature/logo-handler
Feature/logo handler
This commit is contained in:
commit
f3a8c28f15
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/logo.ashx?logotype=3" />
|
||||||
<title>401 Error Page</title>
|
<title>401 Error Page</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/logo.ashx?logotype=3" />
|
||||||
<title>403 Error Page</title>
|
<title>403 Error Page</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/logo.ashx?logotype=3" />
|
||||||
<title>404 Error Page</title>
|
<title>404 Error Page</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/logo.ashx?logotype=3" />
|
||||||
<title>500 Error Page</title>
|
<title>500 Error Page</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
|
@ -44,8 +44,9 @@ map $request_uri $header_x_frame_options {
|
|||||||
|
|
||||||
map $request_uri $cache_control {
|
map $request_uri $cache_control {
|
||||||
default "no-cache, no-store, no-transform";
|
default "no-cache, no-store, no-transform";
|
||||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/.*\?hash.*|storage\/userPhotos\/root\/.*\?hash.*) "must-revalidate, no-transform, immutable, max-age=31536000"; ~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/.*\?hash.*|storage\/userPhotos\/root\/.*\?hash.*|storage\/whitelabel\/root\/.*\?hash.*|storage\/static_partnerdata\/root\/.*\?hash.*) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
||||||
|
~*\/(images\/logo)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||||
}
|
}
|
||||||
|
|
||||||
map $request_uri $content_security_policy {
|
map $request_uri $content_security_policy {
|
||||||
@ -159,7 +160,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:5001;
|
proxy_pass http://127.0.0.1:5001;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
location ~* /(manifest.json|sw.js|appIcon(.)*\.png|icon.svg|bg-error.png|favicon.ico|debuginfo.md) {
|
location ~* /(manifest.json|sw.js|appIcon(.)*\.png|icon.svg|bg-error.png|debuginfo.md) {
|
||||||
try_files /$basename /index.html =404;
|
try_files /$basename /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,10 +312,13 @@ server {
|
|||||||
|
|
||||||
location ~* /plugins {
|
location ~* /plugins {
|
||||||
proxy_pass http://127.0.0.1:5014;
|
proxy_pass http://127.0.0.1:5014;
|
||||||
}
location ~* /migration {
|
}
|
||||||
|
|
||||||
|
location ~* /migration {
|
||||||
proxy_pass http://127.0.0.1:5034;
|
proxy_pass http://127.0.0.1:5034;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
location /sso {
|
location /sso {
|
||||||
rewrite sso/(.*) /$1 break;
|
rewrite sso/(.*) /$1 break;
|
||||||
proxy_pass http://127.0.0.1:9834;
|
proxy_pass http://127.0.0.1:9834;
|
||||||
@ -345,6 +349,10 @@ server {
|
|||||||
proxy_pass http://127.0.0.1:5000;
|
proxy_pass http://127.0.0.1:5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /logo.ashx {
|
||||||
|
proxy_pass http://127.0.0.1:5000;
|
||||||
|
}
|
||||||
|
|
||||||
location /payment.ashx {
|
location /payment.ashx {
|
||||||
proxy_pass http://127.0.0.1:5000;
|
proxy_pass http://127.0.0.1:5000;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user