Skip to content

donald/labfolder-nginx-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 17, 2017 16:48
February 17, 2017 16:48
February 17, 2017 16:48
February 17, 2017 16:48

Example nginx Docker installation for Labfolder

How to use:

  • Clone this repository into a directory nginx and go there:

      git clone https://github.molgen.mpg.de/donald/labfolder-nginx-example.git nginx
    
  • Edit startstop.sh:

    • Change /home/labfolder/nginx to the absolut path where you are
  • Build the Docker image:

      ./startstop.sh build
    
  • Create the Docker container:

      ./startstop.sh create
    
  • Edit etc_nginx/nginx.conf:

    • change every occurrence of labfolder.molgen.mgp.de to your server name
    • change 141\.14\. to a pattern which matches your network
  • Create a etc_nginx/dhparams.pem file

      openssl dhparam -out etc_nginx/dhparams.pem 2048
    
  • Put your server key file and certificate file in place. The key file should not be encrypted. The crt file should include the chain.

      cp /SOMEWHERE/SERVER.crt etc_nginx/
      cp /SOMEWHERE/SERVER.key etc_nginx/
    
  • start the nginx server

      ./startstop.sh start
    

what else ?

./startstop.sh stop    # stop the server
./startstop.sh restart # restart - after you changed something in etc_nginx
./startstop.sh show    # show images and container
./startstop.sh logs    # show server log
./startstop.sh rm      # remove container
./startstop.sh rmi     # remove image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published