Git Product home page Git Product logo

htllbb's Introduction

HTLLBB

Start with docker-compose up in the HTLLBB directory, the application will start listening on http://localhost:5000. It is intended to run behind a reverse proxy like NGINX or IIS.

Reminder for deployment

  • Configure your SMTP settings in src/appsettings.Production.json

Google's SMTP server uses config like

"Smtp": {
	"Server": "smtp.gmail.com",
	"User": "[email protected]",
	"Pass": "password",
	"Port": "587"
}
  • Setup MySQL Server

  • Edit the MySQL password src/appsettings.Production.json

  • Setup NGINX to serve the backend as a reverse proxy

A sample NGINX config for reverse proxy could look like:

# /etc/nginx/site-enabled/default
location / {
    proxy_pass http://localhost:5000;
    proxy_set_header Host $host;
}

# SignalR stuff
location /chat {
    proxy_read_timeout 86400s;
    proxy_send_timeout 86400s;
    proxy_buffering off;
    proxy_pass http://localhost:5000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}  

For development

  • Install dotnetcore on your platform
  • Use the following environment variable export ASPNETCORE_ENVIRONMENT=Development (~/.bashrc on linux, ~/.profile on OSX)
  • Setup a local MySQL instance, and fill in the required details in src/appsettings.Development.json
  • Start the project with dotnet run in the src directory (or use the default "play" button in visual studio)

htllbb's People

Contributors

filedesless avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

htllbb's Issues

Chatbox persistence

Allow some kind of persistence for the shoutbox. Either in existing database or in a separate redis instance.

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.