docker-pastebin icon indicating copy to clipboard operation
docker-pastebin copied to clipboard

--adress website

Open billouetaudrey opened this issue 3 years ago • 6 comments

Describe the bug Hello, when save new note, it's redirect to localip/id

Is it possible to redirect directly to same url I write the note ?

Thanks :)

I use Docker + Apache reverse proxy

Technically, it's save the notes on the --adress ' '

but I can set my url on --adress :'(

I go on https://website....... Make new note result : The paste has been successfully created: http://192.168.0.48:83/rq9_AMm7ROqH6DwH6m0uE But I want http://website/rq9..........................

thanks

Is it possible ?

billouetaudrey avatar Mar 08 '22 20:03 billouetaudrey

Hey @billouetaudrey,

I think this is a problem with your configuration. Did you configure host: website?

Maybe you show a copy of your configuration?

mko-x avatar Mar 09 '22 21:03 mko-x

Hello,

I don't use any config

I only use docker with this command " --address 192.168.0.48 --port 83 "

image

billouetaudrey avatar Mar 10 '22 11:03 billouetaudrey

Well, then you need to config your apache server to point at the given IP with your desired name. Isn't it configured as reverse proxy for pastebin?

mko-x avatar Mar 13 '22 12:03 mko-x

Yes it's confirgured over apache reverse proxy thanks <VirtualHost *:80>

 ServerName ***
 Redirect / ***

Reverse proxy + HTTPS certificate

<VirtualHost *:443>

 SSLEngine On

SSLCertificateFile /etc/letsencrypt/live//fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/*/privkey.pem

 ServerName ***
 ProxyRequests Off
 ProxyPreserveHost On
 ProxyPass / http://***:83/
 ProxyPassReverse / http://***:83/

billouetaudrey avatar Mar 13 '22 15:03 billouetaudrey

Ok, did you try giving address your configured ServerName?

Like --address your.server.name or --address localhost

mko-x avatar Mar 13 '22 20:03 mko-x

When I do --address pastebin.......com I have :+1:

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadType("production.address", "a valid hostname or IP", "string", None)', src/main.rs:628:10

When add localhost

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

billouetaudrey avatar Mar 14 '22 14:03 billouetaudrey