mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-22 21:43:47 +00:00
Merge pull request #13211 from overleaf/jpa-hotfix-4-0-1
[server-pro] prepare hotfix 4.0.1 GitOrigin-RevId: 42b543d5468614a820ca7f9f29c5c6b83d1f7e69
This commit is contained in:
parent
5b76b08a99
commit
63dbea0092
3 changed files with 32 additions and 0 deletions
9
server-ce/hotfix/4.0.1/Dockerfile
Normal file
9
server-ce/hotfix/4.0.1/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM sharelatex/sharelatex:4.0.0
|
||||
|
||||
# Patch: Block access to metrics endpoint
|
||||
COPY pr_13229_ce_only.patch .
|
||||
RUN patch -p0 --directory=/ < pr_13229_ce_only.patch
|
||||
|
||||
# Patch: Remove documentation link from editor outline
|
||||
COPY outline_doc_icon.patch .
|
||||
RUN patch -p0 < outline_doc_icon.patch
|
9
server-ce/hotfix/4.0.1/outline_doc_icon.patch
Normal file
9
server-ce/hotfix/4.0.1/outline_doc_icon.patch
Normal file
|
@ -0,0 +1,9 @@
|
|||
--- services/web/app/views/project/editor/file-tree-react.pug
|
||||
+++ services/web/app/views/project/editor/file-tree-react.pug
|
||||
@@ -38,5 +38,3 @@ aside.editor-sidebar.full-size
|
||||
highlighted-line="highlightedLine"
|
||||
show="show"
|
||||
)
|
||||
-
|
||||
- documentation-button
|
||||
\ No newline at end of file
|
14
server-ce/hotfix/4.0.1/pr_13229_ce_only.patch
Normal file
14
server-ce/hotfix/4.0.1/pr_13229_ce_only.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- etc/nginx/sites-enabled/sharelatex.conf
|
||||
+++ etc/nginx/sites-enabled/sharelatex.conf
|
||||
@@ -4,6 +4,11 @@ server {
|
||||
|
||||
root /overleaf/services/web/public/;
|
||||
|
||||
+ # block external access to prometheus /metrics
|
||||
+ location /metrics {
|
||||
+ internal;
|
||||
+ }
|
||||
+
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_http_version 1.1;
|
Loading…
Reference in a new issue