Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.23 KB

README.md

File metadata and controls

31 lines (27 loc) · 1.23 KB

KKuTu-Proxy

KKuTu-Proxy is a app that proxies all WS requests, especially designed for KKuTu.

Installation

  1. Clone this repository.
  2. Run npm install in the repository.
  3. Configure line 11-39 on app.js.
  4. Run the program.
  5. Done!

HTTP to HTTPS Redirect

  1. Of course, Enable HTTPS on the app.js configuration.
  2. If required, change the port number(s) on line 38~39.
  3. Change lines 88~99 on KKuTu/Server/lib/Web/main.js to below:
Server.use((req, res, next) => {
  if(req.protocol == 'http') {
    let url = 'https://'+req.get('host')+req.path;
    res.status(302).redirect(url);
  }
});
  1. Restart your KKuTu Web Serer and the program.
  2. Done!

Contributing

If you think something important is missing or should be different based on your experience, I'd love to hear it! If you have suggestions for improving this application, open an issue on this project.

License

AGPL 3.0