Skip to content

Conversation

@nalshamma
Copy link

@nalshamma nalshamma commented Jan 26, 2017

@bryanlatten Still WIP. I ended up doing two implementations, and prefer the one using CONTAINER_SSL and CONTAINER_PORT. I would remove the SERVER_ENABLE_SSL implementation.

The tests currently fail if you use --build-args CONTAINER_SSL=true with this problem, although I can run with https on the container:

$ nginx -t
nginx: [warn] conflicting server name "" on 0.0.0.0:8080, ignored

I have deferred working on alpine while still being reviewed.

@nalshamma
Copy link
Author

@bryanlatten Ready for review. SSL is now enabled at "docker run" time. Certs are mapped from local file system. Tested both ubuntu and alpine build & run for SSL.

Dockerfile Outdated
apt-get install -yqq --no-install-recommends \
nginx-light \
&& \
apt-get install -yqq --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this installation can be combined right below nginx-light, no need for an additional install line

apk add \
nginx \
&& \
apk add \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also be combined with above

README.md Outdated
Provides base OS, patches and stable nginx for quick and easy spinup.

[S6](https://github.com/just-containers/s6-overlay) process supervisor is used for `only` for zombie reaping (as PID 1), boot coordination, and termination signal translation
[S6](https://github.com/just-containers/s6-overlay) process supervisor is used for `only` for zombie reaping (as PID 1), boot coordination, and termination signal translation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like your editor clipped the whitespace, which is important in MD files

@nalshamma
Copy link
Author

@bryanlatten Okay, I made updates per suggestions.

listen 8080;

#ssl on;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove TLSv1 (and possibly 1.1) from the list

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryanlatten
Copy link
Contributor

@nalshamma a PR was just merged adding cent to the mix. Can you handle that one too?

@nalshamma
Copy link
Author

@bryanlatten merge completed

@bryanlatten
Copy link
Contributor

Superseded by #74

NOTE: the warning for duplicate server_name is due to your sed -ig which duplicated the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants