User Tools
databaseandnetworkmanagement:enigma_nginx_config
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| databaseandnetworkmanagement:enigma_nginx_config [2023/05/16 10:35] – created wflaherty | databaseandnetworkmanagement:enigma_nginx_config [2023/05/16 10:41] (current) – wflaherty | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | '' | + | ====== Enigma's Nginx Configuration ====== |
| - | ## | + | |
| - | # You should look at the following URL's in order to grasp a solid understanding | + | ## |
| - | # of Nginx configuration files in order to fully unleash the power of Nginx. | + | # You should look at the following URL's in order to grasp a solid understanding |
| - | # https:// | + | # of Nginx configuration files in order to fully unleash the power of Nginx. |
| - | # https:// | + | # https:// |
| - | # https:// | + | # https:// |
| - | # | + | # https:// |
| - | # In most cases, administrators will remove this file from sites-enabled/ | + | # |
| - | # leave it as reference inside of sites-available where it will continue to be | + | # In most cases, administrators will remove this file from sites-enabled/ |
| - | # updated by the nginx packaging team. | + | # leave it as reference inside of sites-available where it will continue to be |
| - | # | + | # updated by the nginx packaging team. |
| - | # This file will automatically load configuration files provided by other | + | # |
| - | # applications, | + | # This file will automatically load configuration files provided by other |
| - | # available underneath a path with that package name, such as / | + | # applications, |
| - | # | + | # available underneath a path with that package name, such as / |
| - | # Please see / | + | # |
| - | ## | + | # Please see / |
| - | + | ## | |
| - | server { | + | |
| - | listen 80; | + | server { |
| - | listen [:: | + | listen 80; |
| - | server_name observium.errigal.com; | + | listen [:: |
| - | | + | server_name observium.errigal.com; |
| - | location / { | + | |
| - | proxy_pass http:// | + | location / { |
| - | proxy_set_header host $host; | + | proxy_pass http:// |
| - | proxy_set_header x-real-ip $remote_addr; | + | proxy_set_header host $host; |
| - | } | + | proxy_set_header x-real-ip $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | server { | + | |
| - | listen 80; | + | server { |
| - | listen [:: | + | listen 80; |
| - | listen 443 ssl http2; | + | listen [:: |
| - | listen [::]:443 ssl http2; | + | listen 443 ssl http2; |
| - | server_name docker.errigal.com; | + | listen [::]:443 ssl http2; |
| - | | + | server_name docker.errigal.com; |
| - | ssl_certificate / | + | |
| - | ssl_certificate_key / | + | ssl_certificate / |
| - | | + | ssl_certificate_key / |
| - | location / { | + | |
| - | proxy_pass http:// | + | location / { |
| - | proxy_set_header host $host; | + | proxy_pass http:// |
| - | proxy_set_header x-real-ip $remote_addr; | + | proxy_set_header host $host; |
| - | } | + | proxy_set_header x-real-ip $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | server { | + | |
| - | listen 80; | + | server { |
| - | listen [:: | + | listen 80; |
| - | server_name registry.errigal.com; | + | listen [:: |
| - | | + | server_name registry.errigal.com; |
| - | location / { | + | |
| - | proxy_pass https:// | + | location / { |
| - | proxy_set_header host $host; | + | proxy_pass https:// |
| - | proxy_set_header x-real-ip $remote_addr; | + | proxy_set_header host $host; |
| - | } | + | proxy_set_header x-real-ip $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | server { | + | |
| - | listen 443 ssl http2; | + | server { |
| - | listen [::]:443 ssl http2; | + | listen 443 ssl http2; |
| - | server_name registry.errigal.com; | + | listen [::]:443 ssl http2; |
| - | | + | server_name registry.errigal.com; |
| - | ssl_certificate / | + | |
| - | ssl_certificate_key / | + | ssl_certificate / |
| - | | + | ssl_certificate_key / |
| - | location / { | + | |
| - | proxy_pass https:// | + | location / { |
| - | proxy_set_header host $host; | + | proxy_pass https:// |
| - | proxy_set_header x-real-ip $remote_addr; | + | proxy_set_header host $host; |
| - | } | + | proxy_set_header x-real-ip $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | server { | + | |
| - | listen 80; | + | server { |
| - | listen [:: | + | listen 80; |
| - | listen 443 ssl http2; | + | listen [:: |
| - | listen [::]:443 ssl http2; | + | listen 443 ssl http2; |
| - | server_name logsearch.errigal.com; | + | listen [::]:443 ssl http2; |
| - | | + | server_name logsearch.errigal.com; |
| - | ssl_certificate / | + | |
| - | ssl_certificate_key / | + | ssl_certificate / |
| - | | + | ssl_certificate_key / |
| - | location / { | + | |
| - | proxy_pass http:// | + | location / { |
| - | proxy_set_header Host $host; | + | proxy_pass http:// |
| - | proxy_set_header X-Real-IP $remote_addr; | + | proxy_set_header Host $host; |
| - | } | + | proxy_set_header X-Real-IP $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | server { | + | |
| - | listen 80; | + | server { |
| - | listen [:: | + | listen 80; |
| - | listen 443 ssl http2; | + | listen [:: |
| - | listen [::]:443 ssl http2; | + | listen 443 ssl http2; |
| - | server_name opsjenkins.errigal.com; | + | listen [::]:443 ssl http2; |
| - | | + | server_name opsjenkins.errigal.com; |
| - | | + | |
| - | ssl_certificate / | + | |
| - | ssl_certificate_key / | + | ssl_certificate / |
| - | | + | ssl_certificate_key / |
| - | location / { | + | |
| - | proxy_pass http:// | + | location / { |
| - | proxy_set_header Host $host; | + | proxy_pass http:// |
| - | proxy_set_header X-Real-IP $remote_addr; | + | proxy_set_header Host $host; |
| - | } | + | proxy_set_header X-Real-IP $remote_addr; |
| - | } | + | } |
| - | + | } | |
| - | + | ||
| - | # Virtual Host configuration for example.com | + | |
| - | # | + | # Virtual Host configuration for example.com |
| - | # You can move that to a different file under sites-available/ | + | # |
| - | # to sites-enabled/ | + | # You can move that to a different file under sites-available/ |
| - | # | + | # to sites-enabled/ |
| - | #server { | + | # |
| - | # listen 80; | + | #server { |
| - | # listen [:: | + | # listen 80; |
| - | # | + | # listen [:: |
| - | # server_name example.com; | + | # |
| - | # | + | # server_name example.com; |
| - | # root / | + | # |
| - | # index index.html; | + | # root / |
| - | # | + | # index index.html; |
| - | # location / { | + | # |
| - | # try_files $uri $uri/ =404; | + | # location / { |
| - | # } | + | # try_files $uri $uri/ =404; |
| - | #} | + | # } |
| - | '' | + | #} |
databaseandnetworkmanagement/enigma_nginx_config.1684229754.txt.gz · Last modified: 2023/05/16 10:35 by wflaherty