dsmurl
02/12/2022, 5:20 PMdsmurl
02/12/2022, 5:21 PMrp_st
02/12/2022, 5:22 PMdsmurl
02/12/2022, 5:22 PMrp_st
02/12/2022, 5:23 PMdsmurl
02/12/2022, 5:23 PMhttps://hub.docker.com/_/nginx
- Find and remember the internal bridge ip of the supertokens docker (to be used later)
- docker exec mysql1 cat /etc/hosts
- Should be something like 172.17.0.3
- Line up a nginx.conf file in the host that can be fed into the nginx docker container
- cd ; mkdir docker ; mkdir docker/nginx ; nano ~/docker/nginx/nginx.conf
- Write into that file the following (note the filled in bridge ip from the supertokens found above)
- server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3567;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
- Pull and start a new docker image
- docker run --restart always --name nginx-1 -v /root/docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -p 80:80 -d nginx:1.21.6-alpine
NOW: trying to get the right nginx.conf while reading here: https://supertokens.com/docs/emailpassword/common-customizations/core/add-ssl-via-nginx
PROBLEM: Nginx just keeps restartingdsmurl
02/12/2022, 5:23 PMrp_st
02/12/2022, 5:24 PMrp_st
02/12/2022, 5:25 PMdsmurl
02/12/2022, 5:26 PMrp_st
02/12/2022, 5:27 PMdsmurl
02/12/2022, 5:27 PMdsmurl
02/12/2022, 5:27 PMdsmurl
02/12/2022, 5:30 PMdsmurl
02/12/2022, 5:30 PMdsmurl
02/12/2022, 5:31 PMdsmurl
02/12/2022, 5:33 PMrp_st
02/12/2022, 5:34 PMrp_st
02/12/2022, 5:34 PMdsmurl
02/12/2022, 5:35 PMdsmurl
02/12/2022, 5:36 PMrp_st
02/12/2022, 5:36 PMdsmurl
02/12/2022, 5:37 PMdsmurl
02/12/2022, 5:37 PMdsmurl
02/12/2022, 5:37 PMrp_st
02/12/2022, 5:37 PM