Skip to content

kdhkr/KKuTu-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Proxy all WS requests through a proxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published