Comments (8)
Hello,
You can enable SSL using a reverse proxy server.
In my case, I use Linuxserver's SWAG project: https://docs.linuxserver.io/general/swag
The Nginx config this project has is ready for use Let's encrypt certbot.
Since there are many related tutorials about SWAG on Google, you can easily build your server. :)
from docker-h5ai.
I tried that, but I got a Bind for 0.0.0.0:80 failed: port is already allocated
error. I'm not too sure how it's supposed to work.
What I tried: ran docker-h5ai in one container, set up swag in another container. When trying to run swag, it throws me that error.
from docker-h5ai.
Maybe there's another process that uses the 80 port. You should use the 80 port to Swag first, then make it proxies the other web programs inside by domain or something.
from docker-h5ai.
the other process that uses the 80 port is h5ai docker, though. I'm lost, sorry if this seems dumb but I'm unsure as to how to make this work. I also tried manually installing certbot in the docker container via docker exec, but I couldn't get that to work.
from docker-h5ai.
If you set an internal network for h5ai and Swag, you don't need to open 80 port for h5ai. Setting reverse proxy (Swag) which means making all the incoming requests from the Internet through the proxy server. Swag, the reverse proxy server, will determine the proper destination by its configs.
This can be looked seems complex, but you're getting familiar with the Docker use.. :)
from docker-h5ai.
I will close this issue because it is not directly related to this project. 😃
from docker-h5ai.
final question, since I'm a bit confused.
the docker command used to start this includes:
docker run -d --name=h5ai \ -p 80:80 \
You said I don't need to open the 80 port for h5ai, but how am I supposed to do that when it's in the command?
from docker-h5ai.
Sorry for the late reply,
The example assumes that we're not using any proxy system. If you don't need HTTPS, you can open 80 port for the Internet.
Otherwise, if you want to use HTTPS then you will need a Docker network to connect the reverse proxy server and h5ai, then the reverse proxy server can send packets to h5ai in the internal Docker network.
So, even if you have multiple web services that all needs 80 or 443 ports, you can make only one service open 80, 443 ports and you don't need to care about the port forwarding of the web services. That one opens the ports will surely be the reverse proxy server.
from docker-h5ai.
Related Issues (16)
- Turn on file search? HOT 2
- fatel error HOT 2
- webm thumbnail failure HOT 4
- Fatal Python error: init_interp_main: can't initialize time HOT 2
- multiple users HOT 3
- Using Reverse Proxy for TLS? HOT 3
- could not add path via nginx reverse proxy HOT 11
- Thumbnails not displaying due to low PHP memory limit HOT 1
- Question HOT 1
- Changing the active port HOT 1
- follow hard/symlinks?
- recommend to add resume download function HOT 1
- Builds for arm64 HOT 3
- PUID and PGID env variables have no effect HOT 2
- Unable to login with credentials HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-h5ai.