Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx: add nginx to shell server #53

Merged
merged 4 commits into from
Sep 16, 2018
Merged

Conversation

mayli
Copy link
Contributor

@mayli mayli commented Jun 28, 2018

as a reverse proxy of ~/.nginx.sock

path: /etc/nginx/sites-enabled/default

- name: Restart nginx
when: nginxconf.chnaged
Copy link

Choose a reason for hiding this comment

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

there's a typo here.

- name: Remove default nginx site
file:
state: absent
path: /etc/nginx/sites-enabled/default
Copy link

Choose a reason for hiding this comment

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

Should we also remove /etc/nginx/sites-available/default ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/etc/nginx/sites-available/default is src of this symlink. there is no point to remove the original copy

Copy link
Member

Choose a reason for hiding this comment

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

Agreed

@RyanSquared
Copy link
Member

@mayli why not use the nginx provided from Debian?

state: absent
path: /etc/nginx/sites-enabled/default

- name: Restart nginx
Copy link
Member

Choose a reason for hiding this comment

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

try to make this optional so that it doesn't fail if systemd isn't running (for instance, when setting up a build with Docker)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Member

Choose a reason for hiding this comment

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

This ought to be a handler, but that would depend on #68

Copy link
Member

@KellerFuchs KellerFuchs left a comment

Choose a reason for hiding this comment

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

LGTM, the only feedback I had isn't actionable right now.

- name: Remove default nginx site
file:
state: absent
path: /etc/nginx/sites-enabled/default
Copy link
Member

Choose a reason for hiding this comment

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

Agreed

state: absent
path: /etc/nginx/sites-enabled/default

- name: Restart nginx
Copy link
Member

Choose a reason for hiding this comment

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

This ought to be a handler, but that would depend on #68

@KellerFuchs KellerFuchs merged commit e07e0cd into hashbang:master Sep 16, 2018
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.

4 participants