Giter Site home page Giter Site logo

Cannot use own host about send HOT 4 CLOSED

timvisee avatar timvisee commented on August 17, 2024
Cannot use own host

from send.

Comments (4)

timvisee avatar timvisee commented on August 17, 2024

Your container uses port 1443, while you use HTTPS defaulting to 443 with ffsend.

You either have to change the container port to 443, or must explicitly provide port 1443 to ffsend.

Note that when using HTTPS, you likely have to set up a reverse proxy in front of it to configure a HTTPS certificate properly.

This Docker composer example might be of help: https://github.com/timvisee/send-docker-compose

You can easily test the host you provide to ffsend in your browser.

from send.

HenryJi529 avatar HenryJi529 commented on August 17, 2024

I have already set up an Nginx server like below, and it seems that there is still a problem.

jeep_jipu@morningstar /home/jeep_jipu                                           
⚡ cat /etc/nginx/sites-enabled/send.conf 
server {
    	server_name send.morningstar529.com;
	location / {
		proxy_pass http://127.0.0.1:1443;
             	index  index.html index.jsp;
         }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/send.morningstar529.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/send.morningstar529.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}server {
    if ($host = send.morningstar529.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


	listen 80;
    	server_name send.morningstar529.com;
    return 404; # managed by Certbot

Screen Shot 2021-08-27 at 11 43 13 PM

Screen Shot 2021-08-28 at 12 26 16 AM

from send.

timvisee avatar timvisee commented on August 17, 2024

There's likely something wrong with the SSL certificate. Does uploading/downloading work fine in your browser?

Likely unrelated, but when using Nginx as reverse proxy, you should make sure that it is configured to proxy websockets correctly as well: https://nginx.org/en/docs/http/websocket.html

from send.

HenryJi529 avatar HenryJi529 commented on August 17, 2024

Thanks! It works now!

from send.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.