mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 18:28:29 +00:00
big cleanup
This commit is contained in:
parent
d5e5cb0533
commit
bede3ce509
@ -1,15 +1,3 @@
|
|||||||
# Define the location for where cobalt web runs. Change the port to fit your needs.
|
|
||||||
upstream cobaltweb {
|
|
||||||
server 127.0.0.1:9000;
|
|
||||||
keepalive 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Define the location for where cobalt API runs. Change the port to fit your needs.
|
|
||||||
upstream cobaltapi {
|
|
||||||
server 127.0.0.1:9001;
|
|
||||||
keepalive 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Server block definition for cobalt web.
|
# Server block definition for cobalt web.
|
||||||
server {
|
server {
|
||||||
# Listen for for requests to the domain on port 80.
|
# Listen for for requests to the domain on port 80.
|
||||||
@ -17,20 +5,15 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name co.wukko.sh;
|
server_name co.wukko.sh;
|
||||||
|
|
||||||
# Set loggging.
|
# Set loggging. By default, logging is off for privacy.
|
||||||
access_log /var/log/nginx/co.wukko.sh.access.log;
|
# Uncomment these if you want to enable logging.
|
||||||
error_log /var/log/nginx/co.wukko.sh.error.log;
|
#access_log /var/log/nginx/co.wukko.sh.access.log;
|
||||||
|
#error_log /var/log/nginx/co.wukko.sh.error.log;
|
||||||
|
|
||||||
# Pass all requests to cobalt web, as defined above.
|
# Pass all requests to cobalt web, as defined above.
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_pass http://127.0.0.1:9000;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_pass http://cobaltweb;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
|
||||||
proxy_set_header Connection "keep-alive";
|
|
||||||
proxy_store off;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,19 +24,14 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name co.wuk.sh;
|
server_name co.wuk.sh;
|
||||||
|
|
||||||
# Set loggging.
|
# Set loggging. By default, logging is off for privacy.
|
||||||
access_log /var/log/nginx/co.wuk.sh.access.log;
|
# Uncomment these if you want to enable logging.
|
||||||
error_log /var/log/nginx/co.wuk.sh.error.log;
|
#access_log /var/log/nginx/co.wuk.sh.access.log;
|
||||||
|
#error_log /var/log/nginx/co.wuk.sh.error.log;
|
||||||
|
|
||||||
# Pass all requests to cobalt API, as defined above.
|
# Pass all requests to cobalt API, as defined above.
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_pass http://127.0.0.1:9001;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_pass http://cobaltapi;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
|
||||||
proxy_set_header Connection "keep-alive";
|
|
||||||
proxy_store off;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -16,18 +16,6 @@ server {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define the location for where cobalt web runs. Change the port to fit your needs.
|
|
||||||
upstream cobaltweb {
|
|
||||||
server 127.0.0.1:9000;
|
|
||||||
keepalive 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Define the location for where cobalt API runs. Change the port to fit your needs.
|
|
||||||
upstream cobaltapi {
|
|
||||||
server 127.0.0.1:9001;
|
|
||||||
keepalive 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Server block definition for cobalt web.
|
# Server block definition for cobalt web.
|
||||||
server {
|
server {
|
||||||
# Listen for for requests to the domain on port 443.
|
# Listen for for requests to the domain on port 443.
|
||||||
@ -35,24 +23,20 @@ server {
|
|||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name co.wukko.sh;
|
server_name co.wukko.sh;
|
||||||
|
|
||||||
# Set loggging.
|
# Set loggging. By default, logging is off for privacy.
|
||||||
access_log /var/log/nginx/co.wukko.sh.access.log;
|
# Uncomment these if you want to enable logging.
|
||||||
error_log /var/log/nginx/co.wukko.sh.error.log;
|
#access_log /var/log/nginx/co.wukko.sh.access.log;
|
||||||
|
#error_log /var/log/nginx/co.wukko.sh.error.log;
|
||||||
|
|
||||||
# Set your HTTPS certificate.
|
# Set your HTTPS certificate.
|
||||||
ssl_certificate /etc/letsencrypt/live/co.wukko.sh/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/co.wukko.sh/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/co.wukko.sh/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/co.wukko.sh/privkey.pem;
|
||||||
|
|
||||||
# Pass all requests to cobalt web, as defined above.
|
# Pass all requests to cobalt web, as defined above.
|
||||||
|
# If you use a different port for cobalt web, change it here!
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_pass http://127.0.0.1:9000;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_pass http://cobaltweb;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
|
||||||
proxy_set_header Connection "keep-alive";
|
|
||||||
proxy_store off;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,23 +47,19 @@ server {
|
|||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name co.wuk.sh;
|
server_name co.wuk.sh;
|
||||||
|
|
||||||
# Set loggging.
|
# Set loggging. By default, logging is off for privacy.
|
||||||
access_log /var/log/nginx/co.wuk.sh.access.log;
|
# Uncomment these if you want to enable logging.
|
||||||
error_log /var/log/nginx/co.wuk.sh.error.log;
|
#access_log /var/log/nginx/co.wuk.sh.access.log;
|
||||||
|
#error_log /var/log/nginx/co.wuk.sh.error.log;
|
||||||
|
|
||||||
# Set your HTTPS certificate.
|
# Set your HTTPS certificate.
|
||||||
ssl_certificate /etc/letsencrypt/live/co.wuk.sh/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/co.wuk.sh/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/co.wuk.sh/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/co.wuk.sh/privkey.pem;
|
||||||
|
|
||||||
# Pass all requests to cobalt API, as defined above.
|
# Pass all requests to cobalt API, as defined above.
|
||||||
|
# If you use a different port for cobalt API, change it here!
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_pass http://127.0.0.1:9001;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_pass http://cobaltapi;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
|
||||||
proxy_set_header Connection "keep-alive";
|
|
||||||
proxy_store off;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user