mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Proper link generation after send using domain #15

Closed aronmgv closed 3 years ago

aronmgv commented 3 years ago

Hi,

After sending bin link is generated using localhost not the reverse proxy domain configuration:

Now:

 The paste has been successfully created: http://0.0.0.0:8000/l8eTHrtokUNRYUlOn2T1i

Desired:

 The paste has been successfully created: https://pbin.example.com/l8eTHrtokUNRYUlOn2T1i

Didn't see this part settings in your docs.

Thanks, Michal

aronmgv commented 3 years ago

Just noticed the --uri= parameter. Sorry for spam.