Stefan Horvath bfb5decba7 Create LICENSE
Aligned with Peter Kleissner to make it Open Source
2023-12-14 19:29:23 +01:00
2022-11-14 17:28:49 +00:00
2022-09-28 01:54:13 +04:00
2022-09-28 01:54:13 +04:00
2022-10-14 21:29:59 +04:00
2022-10-14 21:29:59 +04:00
2023-12-14 19:29:23 +01:00
2022-11-22 00:02:02 +00:00

Web Gateway upload

The following repository consists of the Peernet Web gateway upload implementation.

Features:

  • Upload file from Webpage
  • Upload file to Peernet from a single Curl request

Build

go build . 

Run

Run on default parameters (With Debug output)

./WebGatewayUpload

Run on Production mode

./WebGatewayUpload -Production

Custom Flags

./WebGatewayUpload -h 

Usage of ./WebGatewayUpload:
  -BackEndApiAddress string
    	current environment (default "localhost:8088")
  -Certificate string
    	SSL Certificate file (default "server.crt")
  -Key string
    	SSL Key file (default "server.key")
  -Production
    	Flag to check if required to run on production mode
  -SSL
    	Flag to check if the SSL certificate is enabled or not
  -WebpageAddress string
    	current environment (default "localhost:8098")

Routes

  • (GET) /upload (Opens upload page in the webgateway)

  • (POST) /upload (Uploads file to peernet from Webpage)

  • (POST) /uploadCurl (Uploads file from CURL)

    Ex:

    curl http://localhost:8088/uploadCurl -F add=@test.txt
    
Description
No description provided
Readme MIT 1.4 MiB
Languages
CSS 49.3%
SCSS 46.2%
Go 3.5%
HTML 1%