Develope/개발일지

gitlab nginx 설정

고로이 2021. 12. 14. 16:44
반응형



prometheus_monitoring['enable'] = false
grafana['enable'] = false
nginx['listen_port'] = 8082
external_url 'http://gitlab.*******.com'



-----------------------------------------------------------

 

user  nginx;
worker_processes  auto;

#error_log  /var/log/nginx/error.log notice;
#pid        /var/run/nginx.pid;

pid     /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections  4096;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';


    #######################################
    # Logging Settings
    #######################################

    error_log           /var/log/nginx/error.log;
    access_log          /var/log/nginx/access.log;

    #acceiss_log  /var/log/nginx/access.log  main;


    #######################################
    # Basic Settings
    #######################################

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;
    server_tokens       off;

    gzip  on;


    #######################################
    # SSL Settings
    #######################################

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;


    #######################################
    # Virtual Host Configs
    #######################################

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

반응형