Skip to content

about server.conf and nginx.conf #98

Closed
@youyifentian

Description

@youyifentian

i can mount a configuration file for nginx but i must enter the container edit the nginx.conf file
However, it doesn't make me feel comfortable
because,if i want to use the default port 8080 settings,I have to get into the container,edit or delete some code of nginx.conf file,so that would make it look useless for mount a configuration file

so why not
move some code of nginx.conf to /etc/nginx/conf.d/server.conf or /etc/nginx/conf.d/default.conf for default config
some code like:
server {
listen [::]:8080 default_server;
listen 8080 default_server;
server_name _;
..............

so We can edit server.conf or default.conf without entering the container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions