btp/btp.dev
1
1
Fork
You've already forked btp.dev
1

nginx unable to see certificates on mounted volume when run in a container #12

Open
opened 2023年03月25日 18:38:53 +01:00 by btp · 1 comment
Owner
Copy link

Create a Dockerfile that will build the website production environment to deploy to the prod server.

Create a Dockerfile that will build the website production environment to deploy to the prod server.
btp added this to the Deploy Site milestone 2023年03月25日 18:38:53 +01:00
btp changed title from (削除) Created Dockerfile and test running site in container (削除ここまで) to Create Dockerfile and test running site in container 2023年03月27日 16:02:05 +02:00
Author
Owner
Copy link

Adjusting this to specify running the nginx instance in a container. It appears there's an issue with nginx accessing the ssl certificates when they are provided through a mounted volume with the container.

nginx: [emerg] cannot load certificate "/path/to/fullchain.pem": BIO_new_file() failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/path/to/fullchain.pem','r') error:2006D002:BIO routines:BIO_new_file:system lib)
Adjusting this to specify running the `nginx` instance in a container. It appears there's an issue with `nginx` accessing the ssl certificates when they are provided through a mounted volume with the container. ``` nginx: [emerg] cannot load certificate "/path/to/fullchain.pem": BIO_new_file() failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/path/to/fullchain.pem','r') error:2006D002:BIO routines:BIO_new_file:system lib) ```
btp changed title from (削除) Create Dockerfile and test running site in container (削除ここまで) to nginx unable to see certificates on mounted volume when run in a container 2023年04月03日 22:02:27 +02:00
btp removed this from the Deploy Site milestone 2023年05月04日 18:14:02 +02:00
Sign in to join this conversation.
No Branch/Tag specified
main
dev
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
btp/btp.dev#12
Reference in a new issue
btp/btp.dev
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?