docker-pastebin
docker-pastebin copied to clipboard
--adress website
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 ?
Hey @billouetaudrey,
I think this is a problem with your configuration. Did you configure host: website?
Maybe you show a copy of your configuration?
Hello,
I don't use any config
I only use docker with this command " --address 192.168.0.48 --port 83 "

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?
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/
Ok, did you try giving address your configured ServerName?
Like --address your.server.name or --address localhost
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.