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

Update nginx.conf.j2 #277

Closed
wants to merge 1 commit into from
Closed

Conversation

aspoliveira1981
Copy link

Hello! I noticed the following include:
include conf.d/*.conf;
Was failing, and on the conf.d directory there's a repeated conf for port 80.
I believe we can exclude this include (lol)

Thanks!!!

Hello! I noticed the following include:
   include conf.d/*.conf;
Was failing, and on the conf.d directory there's a repeated conf for port 80.
I believe we can exclude this include.

Thanks!!!
@@ -75,7 +75,8 @@ http {
proxy_pass http://pulp-api;
}

include conf.d/*.conf;
#
# include conf.d/*.conf;
Copy link
Member

Choose a reason for hiding this comment

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

@aspoliveira1981 include conf.d/*.conf; cannot be removed, as it is used for customizing plugin URLs:
https://docs.pulpproject.org/plugins/plugin-writer/concepts/index.html#configuring-reverse-proxy-with-custom-urls

Copy link
Author

Choose a reason for hiding this comment

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

thanks @fao89 but I wonder about the other conf files you mentioned:

[root@ip-10-2-1-88 templates]# cd /etc/nginx/conf.d/
[root@ip-10-2-1-88 conf.d]# ls
default.conf
[root@ip-10-2-1-88 conf.d]#

From this installation I just got the default.conf, maybe we need to add under the templates/ the other jinja files.

Copy link
Member

Choose a reason for hiding this comment

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

@aspoliveira1981 can you tree /etc/nginx/ so we can more completely see the state of your system?

Copy link
Member

@fao89 fao89 left a comment

Choose a reason for hiding this comment

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

[fao@localhost ~]$ ls /etc/nginx/conf.d/
pulp_ansible pulp_ansible.conf  pulp_container.conf

If the repeated conf was a pulp one, just remove the conf that is without the .conf suffix

[fao@localhost ~]$ ls /etc/nginx/conf.d/
pulp_ansible.conf  pulp_container.conf

@aspoliveira1981
Copy link
Author

aspoliveira1981 commented Apr 28, 2020 via email

@fao89
Copy link
Member

fao89 commented Apr 29, 2020

@aspoliveira1981 thank you for your PR, it really helped us to address the issue, we are moving the pulp conf files to another directory: #278

@fao89 fao89 closed this Apr 29, 2020
@aspoliveira1981
Copy link
Author

thanks @fao89 , I really appreciate 😃

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.

None yet

3 participants