Git Product home page Git Product logo

Comments (5)

tiendv avatar tiendv commented on August 20, 2024

hi fradelg, Could you tell me, now how could i config this if I've installed ?

from docker-image.

songjinghe avatar songjinghe commented on August 20, 2024

@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.

tiendv avatar tiendv commented on August 20, 2024

@songjinghe , that true, I'm newbie in docker, Thank you very much for your help ;)

from docker-image.

fradelg avatar fradelg commented on August 20, 2024

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.

henryoswald avatar henryoswald commented on August 20, 2024

i've upped this to 50mb with 5c74504

from docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.