Skip to content

Use nginx as the web service, instead of flask's app.run #1389

Closed
@micahflee

Description

@micahflee

Right now when OnionShare starts a web service, it uses app.run to start it directly in flask. I think instead we should launch an nginx subprocess and use that along with gunicorn to host the flask app.

Before implementing this, I'm not sure how a few things will work:

  • Progress bars. If someone downloads a file from nginx, how can we hook into the real-time file transfer to make progress bars work?
  • "Stop sharing after files have been sent". How do we know that the files are finished sending?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions