Go service that redirect http traffic to https from one binary
Go to file
Valentin c2988465f4
fix(repo) cleaning
2025-10-09 10:53:51 +02:00
src feat(log) advanced logging and env variable for port 2024-08-05 15:20:35 +02:00
.gitattributes feat(sources) uploading sources 2024-08-05 15:03:43 +02:00
.gitignore feat(sources) uploading sources 2024-08-05 15:03:43 +02:00
LICENSE Initial commit 2024-08-05 14:59:10 +02:00
README.md fix(repo) cleaning 2025-10-09 10:53:51 +02:00
logo.png Add files via upload 2024-08-05 15:28:32 +02:00

README.md


Logo

http-to-https

Simplest http to https redirector

Report Bug · Pull request

Table of contents
  1. What is http-to-https ?
  2. Getting started
  3. License

What is http-to-https

http-to-https is a simple request redirector from http to https that log request and allow custom ports.

(back to top)

Built With

This section list major frameworks/libraries used

(back to top)

Getting Started

Now let's see how to set up an http-to-https instance.

Installation

  1. Create directory

    mkdir /opt/http-to-https
    cd /opt/http-to-https
    
  2. Download the latest release and apply permissions

    wget -O http-to-https https://github.com/itsmrval/http-to-https/releases/download/1.1.0/http-to-https_linux_amd64
    chmod +x http-to-https
    
  3. Create the service on systemd Write the file

    nano /etc/systemd/system/http-to-https.service
    

    Complete and put the service file below:

    [Unit]
    Description=http-to-https service
    After=network.target
    
    [Service]
    Type=simple
    ExecStart=/opt/http-to-https/http-to-https
    Environment="PORT=80"
    
    [Install]
    WantedBy=multi-user.target
    
  4. Reload systemd and run the service !

    systemctl daemon-reload
    systemctl enable --now http-to-https
    

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)