Comments (5)
hi fradelg, Could you tell me, now how could i config this if I've installed ?
from docker-image.
@tiendv
seems you are new to docker?(same with me)
STEP 1
start sharelatex docker containner, you can find instructions in README, make sure you can access http://localhost:5000 ,if you're using the default option~
STEP 2
run following command in terminal(I'm in ubuntu 14.04.3)
sudo docker exec -it sharelatex /bin/bash
now you're put into the root terminal of the containner.
STEP 3
edit the file /etc/nginx/nginx.conf
with any available text editor
vi /etc/nginx/nginx.conf
and add client_max_body_size 20m;
in the http{
block, just like below:
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 20m; # <--- insert here, with any size you want~
# server_tokens off;
then save and exit, and press CTRL-D to exit the docker terminal
STEP 4
run
sudo docker ps
to get the current running containner ID(22dabd5c5292,for example)
STEP 5
run
sudo docker commit 22dabd5c5292 sharelatex:mySharelatex
to commit your changes to a new image called mySharelatex
,so you can find it with sudo docker images
STEP 6
stop the original image/containner with sudo docker stop sharelatex
and run the new one you just build:
sudo docker run -d -v ~/sharelatex_data:/var/lib/sharelatex -p 5000:80 --name=mySharelatex sharelatex:mySharelatex
now you can upload file as large as 20MB! enjoy~
from docker-image.
@songjinghe , that true, I'm newbie in docker, Thank you very much for your help ;)
from docker-image.
Thanks @songjinghe for the detailed explanation!
I think that STEP 5 and 6 can be replaced by a simple
sudo docker restart mySharelatex
However, changes will be lost if the container is destroyed later.
from docker-image.
i've upped this to 50mb with 5c74504
from docker-image.
Related Issues (20)
- How to migrate server? HOT 4
- Docstore API Responded with Non-Success Code: 301 HOT 3
- Missing directory `modules` HOT 1
- Project doesn't build HOT 2
- Please update quickstart guide HOT 2
- Cached/maked files not found by pdflatex. \tikzexternalize[mode=list and make] not working. HOT 1
- Protected MongoDB -> history and spellcheck disabled HOT 1
- docker-compose UnicodeEncodeError HOT 1
- Latest/v0.6.3 docker hub images uses depreciated 2016 texlive HOT 3
- http/2 with ProxyPass not working HOT 1
- er ps
- migrations do not work: TypeError: db.collection is not a function HOT 1
- Can't handle RDB format version 8 – 502 Bad Gateway
- Issue with Building a Docker Image then Running ShareLatex HOT 9
- TeXLive package manager requires an upgrade! HOT 16
- runit run files missing after container restart HOT 1
- base image (phusion/baseimage:0.9.16) still depends on ubuntu 14.04 HOT 2
- Branch sk-update-mongojs for contacts-sharelatex git repo is missing HOT 1
- Increase compilation timeout HOT 1
- Request validation needed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-image.