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 - Set directive into 'main' context; i.e.: "worker_processes" #491

Open
vlauciani opened this issue Sep 15, 2023 · 0 comments
Open

Comments

@vlauciani
Copy link

vlauciani commented Sep 15, 2023

Hi

Reading the guide here:

or the issue:

I understand that to update the nginx conf I need to add my file into /opt/docker/etc/nginx/conf.d directory; this adds the configuration into http {} context. For example I can add multiple server {} context:

http {
  server {
  }
  server {
  }
}

But how I can add directive like worker_processes that is in main context? Should I override the file /etc/nginx/nginx.conf?

Thank you

@vlauciani vlauciani changed the title nginx - set worker_processes nginx - Set directive into 'main' context; i.e.: "worker_processes" Sep 15, 2023
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

No branches or pull requests

1 participant