Giter Club home page Giter Club logo

ntnu-course-queuing-website's Introduction

NTNU-Course-Queuing-Website

NTNU Course Queuing Website / 師大課程排隊網站

🎞️ Video demonstration

image

image

Tutorial of network management (Reverse proxy)

I used Apache at the beginning, but it is extremely slow.

Then I tried Nginx, but it seems like containing a lot of bugs on Windows, it is not friendly...

In the end, I tried Caddy... And I found that it is super fast and easy to configure. Amazing!

  1. Apply for certificates to change HTTP to HTTPS

    1. You can use Certbot of Let's Encrypt to generate your certificates.

      There are plenty tutorials on the Internet, I list the best one for me at here only:

    2. Move the certificates that you generated by Certbot into directory Proxy.

  2. Buy a domain

    I bought one on NameCheap with about 2 USD (about 60 TWD), which is "ntnu.site".

  3. Caddy (Reverse proxy)

    1. Download Caddy.

    2. You can choose to add its path into environment variables, or put the whole directory here.

      I'm not going to explain this in detail because it is tedious and a little complicated.

      Here's a tutorial for you guys: https://wst24365888.github.io/install-caddy/

    3. Rename Caddyfile_example in directory Proxy to Caddyfile.

    4. Open it and do some changes:

      1. Change "YOUR_DOMAIN" in line 1 to your domain.

      2. Change "FULL_CHAIN.PEM" in line 3 to your full chain certificate filename. Default should be "fullchain1.pem".

      3. Change "PRIVATE_KEY.PEM" in line 3 to your private key certificate filename. Default should be "privkey1.pem".

      4. Change "BACK_END_URL" to your Back-End URL.

        Most of the people setup Back-End on the same computer with reverse proxy, then the Back-End URL should be "127.0.0.1".

      5. Do same thing to "FRONT_END_URL"

      6. Change "BACK_END_PORT" to your Back-End port. Default should be 5000.

      7. Change "FRONT_END_PORT" to your Front-End port. Default should be 3000.

    5. Run the Caddy with command caddy run or caddy start.

ntnu-course-queuing-website's People

Contributors

aisu-programming avatar

Watchers

 avatar

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.