Skip to content

m0zart89/tring-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tring-test

Docker env parameters:

  • HTTP_PORT (default 80)
  • HTTPS_PORT (default disabled)
  • SSL_CERTIFICATE (default disabled)
  • SSL_CERTIFICATE_KEY (default disabled)
  • STATIC_PATH (default /usr/share/nginx/html)
  1. Clone repo:
git clone git@github.com:m0zart89/tring-test.git
  1. HTTP Server:
sudo docker run \
 -p 82:82 -e HTTP_PORT=82 \
 -it mozart89/tring-test

Result: http://localhost:82/

  1. HTTPS Server:
sudo docker run \
 -p 1443:1443 -e HTTPS_PORT=1443 \
 -e SSL_CERTIFICATE=/foo/bar/file.cert \
 -e SSL_CERTIFICATE_KEY=/foo/bar/file.key \
 -v "$(pwd)"/cert:/foo/bar \
 -it mozart89/tring-test

Result: https://localhost:1443/

  1. File Server:
sudo docker run \
 -p 80:80 \
 -e STATIC_PATH=/path/to/static/files \
 -v "$(pwd)"/static:/path/to/static/files \
 -it mozart89/tring-test

Result: http://localhost/test.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published