2022-12-07 08:38:02 +00:00
upstream accounts {
2023-09-26 15:08:05 +00:00
server ${SERVER_ACCOUNTS_HOSTNAME}:${ACCOUNTS_PORT} weight=10 max_fails=3 fail_timeout=30s;
2022-12-07 08:38:02 +00:00
}
2023-12-28 15:54:27 +00:00
upstream app {
2023-12-28 16:56:05 +00:00
server ${SERVER_APP_HOSTNAME}:${APP_PORT} weight=10 max_fails=3 fail_timeout=30s;
2022-12-07 08:38:02 +00:00
}
2023-10-09 17:54:23 +00:00
upstream ingestor {
server ${SERVER_INGESTOR_HOSTNAME}:${INGESTOR_PORT} weight=10 max_fails=3 fail_timeout=30s;
2023-05-02 14:29:22 +00:00
}
2022-12-07 08:38:02 +00:00
upstream dashboard {
2023-09-26 15:08:05 +00:00
server ${SERVER_DASHBOARD_HOSTNAME}:${DASHBOARD_PORT} weight=10 max_fails=3 fail_timeout=30s;
2022-12-07 08:38:02 +00:00
}
2023-09-04 14:48:30 +00:00
upstream admin-dashboard {
2023-09-26 15:08:05 +00:00
server ${SERVER_ADMIN_DASHBOARD_HOSTNAME}:${ADMIN_DASHBOARD_PORT} weight=10 max_fails=3 fail_timeout=30s;
2023-09-04 14:48:30 +00:00
}
2024-09-18 13:39:11 +00:00
upstream api-reference {
server ${SERVER_API_REFERENCE_HOSTNAME}:${API_REFERENCE_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
2024-04-06 12:30:01 +00:00
upstream isolated-vm {
2024-04-06 14:53:38 +00:00
server ${SERVER_ISOLATED_VM_HOSTNAME}:${ISOLATED_VM_PORT} weight=10 max_fails=3 fail_timeout=30s;
2024-04-06 12:30:01 +00:00
}
2024-09-16 15:42:50 +00:00
upstream worker {
server ${SERVER_WORKER_HOSTNAME}:${WORKER_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
2024-09-18 10:58:29 +00:00
upstream workflow {
server ${SERVER_WORKFLOW_HOSTNAME}:${WORKFLOW_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
2024-09-18 19:36:45 +00:00
upstream docs {
server ${SERVER_DOCS_HOSTNAME}:${DOCS_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
2024-09-16 15:11:21 +00:00
upstream home {
server ${SERVER_HOME_HOSTNAME}:${HOME_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
2022-12-07 08:38:02 +00:00
upstream status-page {
2023-09-26 15:08:05 +00:00
server ${SERVER_STATUS_PAGE_HOSTNAME}:${STATUS_PAGE_PORT} weight=10 max_fails=3 fail_timeout=30s;
2022-12-07 08:38:02 +00:00
}
2023-12-30 22:41:57 +00:00
upstream opentelemetry-collector-http {
2023-12-30 23:10:18 +00:00
server ${SERVER_OTEL_COLLECTOR_HOSTNAME}:4318;
2023-10-09 17:50:37 +00:00
}
2023-01-02 10:15:11 +00:00
2023-12-30 22:41:57 +00:00
upstream opentelemetry-collector-grpc {
2023-12-30 23:10:18 +00:00
server ${SERVER_OTEL_COLLECTOR_HOSTNAME}:4317;
2023-12-30 22:41:57 +00:00
}
# Otel Collector
2023-12-30 12:12:24 +00:00
2023-12-30 22:41:57 +00:00
server {
gzip on;
2024-01-29 09:15:02 +00:00
gzip_types text/plain application/xml application/javascript text/javascript text/css application/json;
2023-12-30 22:41:57 +00:00
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
2024-06-24 18:56:45 +00:00
listen 7849;
http2 on;
2023-12-30 22:41:57 +00:00
server_name oneuptime-opentelemetry-collector ${OTEL_COLLECTOR_HOST};
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
location / {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-12-30 22:41:57 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://opentelemetry-collector-http;
}
2023-12-30 22:45:29 +00:00
location ~ /opentelemetry.proto.collector* {
grpc_pass grpc://opentelemetry-collector-grpc;
}
2023-12-30 22:41:57 +00:00
}
2023-12-30 12:12:24 +00:00
2024-02-02 14:43:40 +00:00
# Fluentd Collector
server {
gzip on;
gzip_types text/plain application/xml application/javascript text/javascript text/css application/json;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
2024-06-24 18:56:45 +00:00
listen 7849;
http2 on;
2024-02-02 14:43:40 +00:00
server_name oneuptime-fluentd-collector ${FLUENTD_HOST};
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
location /logs {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-02-02 14:43:40 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://ingestor/fluentd/v1/logs;
}
}
2023-12-30 12:12:24 +00:00
# Status Pages
2022-12-09 08:19:51 +00:00
server {
2023-10-31 14:10:57 +00:00
gzip on;
2024-01-29 09:15:02 +00:00
gzip_types text/plain application/xml application/javascript text/javascript text/css application/json;
2023-10-31 14:10:57 +00:00
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
2024-04-19 17:11:48 +00:00
listen 7849 default_server;
2023-01-02 10:15:11 +00:00
server_name _; # All domains.
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
2023-10-31 14:10:57 +00:00
2023-01-02 10:15:11 +00:00
location / {
2024-03-31 13:00:25 +00:00
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-03-31 13:00:25 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2024-03-31 12:55:50 +00:00
if ($billing_enabled = true) {
return 301 https://$host$request_uri;
}
if ($billing_enabled != true) {
proxy_pass http://status-page;
}
2023-01-02 10:15:11 +00:00
}
location /status-page {
2024-03-31 13:00:25 +00:00
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-03-31 13:00:25 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2024-03-31 12:55:50 +00:00
if ($billing_enabled = true) {
return 301 https://$host$request_uri;
}
if ($billing_enabled != true) {
proxy_pass http://status-page;
}
2023-01-02 10:15:11 +00:00
}
2023-10-17 11:10:50 +00:00
location /status-page-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-01-03 13:20:10 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/status-page/;
2023-10-17 11:10:50 +00:00
}
location /status-page-sso-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page-sso/;
2023-10-17 11:10:50 +00:00
}
location /status-page-identity-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page/;
2023-01-02 10:15:11 +00:00
}
# Acme Verification.
location /.well-known {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-01-03 13:20:10 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/status-page/.well-known;
2023-01-02 10:15:11 +00:00
}
}
2023-12-30 12:12:24 +00:00
#
2023-01-02 10:15:11 +00:00
server {
2023-10-31 14:10:57 +00:00
gzip on;
2024-01-29 09:15:02 +00:00
gzip_types text/plain application/xml application/javascript text/javascript text/css application/json;
2023-10-31 14:10:57 +00:00
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
2024-04-19 17:11:48 +00:00
listen 7850 ssl default_server; # Port HTTPS
2022-12-09 08:19:51 +00:00
2022-12-11 08:02:56 +00:00
ssl_certificate /etc/nginx/certs/StatusPageCerts/$ssl_server_name.crt;
ssl_certificate_key /etc/nginx/certs/StatusPageCerts/$ssl_server_name.key;
2022-12-07 08:38:02 +00:00
server_name _; # All domains.
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
2022-12-10 14:30:39 +00:00
location / {
2022-12-09 12:13:12 +00:00
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2022-12-10 14:30:39 +00:00
2022-12-11 08:02:56 +00:00
proxy_pass http://status-page;
2022-12-10 14:30:39 +00:00
2022-12-07 08:38:02 +00:00
}
2023-10-17 11:10:50 +00:00
location /status-page-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/status-page/;
2023-10-17 11:10:50 +00:00
}
location /status-page-sso-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page-sso/;
2023-10-17 11:10:50 +00:00
}
location /status-page-identity-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page/;
2023-10-17 11:10:50 +00:00
}
2022-12-07 08:38:02 +00:00
location /status-page {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2022-12-10 14:30:39 +00:00
2022-12-11 08:02:56 +00:00
proxy_pass http://status-page;
2022-12-07 08:38:02 +00:00
}
}
server {
2023-10-31 14:10:57 +00:00
gzip on;
2024-01-29 09:15:02 +00:00
gzip_types text/plain application/xml application/javascript text/javascript text/css application/json;
2023-10-31 14:10:57 +00:00
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
2022-12-14 15:14:41 +00:00
2024-06-24 18:56:45 +00:00
listen 7849;
http2 on;
2022-12-14 15:14:41 +00:00
2024-06-24 20:43:24 +00:00
server_name localhost ingress ${HOST}; #All domains
2022-12-07 08:38:02 +00:00
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
2023-08-09 12:25:34 +00:00
set $billing_enabled ${BILLING_ENABLED};
2022-12-07 08:38:02 +00:00
location / {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-10 14:30:39 +00:00
proxy_set_header Host $server_name;
2022-12-07 08:38:02 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-08-09 12:25:34 +00:00
# If billing_enabled is true then proxy to home otherwise to dashboard because we dont need marketing paages for on-prem install.
if ($billing_enabled = true) {
2024-09-16 15:11:21 +00:00
proxy_pass http://home;
2023-08-09 12:25:34 +00:00
}
if ($billing_enabled != true) {
proxy_pass http://dashboard;
}
2022-12-07 08:38:02 +00:00
}
2023-10-17 11:10:50 +00:00
location /status-page-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/status-page/;
2023-10-17 11:10:50 +00:00
}
location /status-page-sso-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page-sso/;
2023-10-17 11:10:50 +00:00
}
location /status-page-identity-api/ {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-10-17 11:10:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity/status-page/;
2023-10-17 11:10:50 +00:00
}
2023-08-09 12:25:34 +00:00
2022-12-07 08:38:02 +00:00
location /accounts {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2022-12-20 07:22:41 +00:00
proxy_pass http://accounts;
2022-12-07 08:38:02 +00:00
}
2023-12-30 22:41:57 +00:00
location /otlp/ {
2023-12-30 22:08:37 +00:00
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-12-30 22:08:37 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-30 22:41:57 +00:00
proxy_pass http://opentelemetry-collector-http/;
}
location ~ /opentelemetry.proto.collector* {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-12-30 22:41:57 +00:00
grpc_pass grpc://opentelemetry-collector-grpc;
2023-10-09 18:18:46 +00:00
}
2023-12-25 13:39:11 +00:00
location /notification {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-30 15:05:25 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/notification;
2022-12-30 15:05:25 +00:00
}
2024-02-03 09:08:29 +00:00
location /fluentd/logs {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-02-03 09:08:29 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://ingestor/ingestor/fluentd/v1/logs;
}
2023-10-09 17:54:23 +00:00
location /ingestor {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-05-02 14:29:22 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-10-09 17:54:23 +00:00
proxy_pass http://ingestor;
2023-05-02 14:29:22 +00:00
client_max_body_size 50M;
}
2024-03-12 10:09:47 +00:00
location /server-monitor {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-03-09 09:57:03 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://ingestor/server-monitor;
client_max_body_size 50M;
}
2022-12-30 15:05:25 +00:00
location /dashboard {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2022-12-20 07:22:41 +00:00
proxy_pass http://dashboard;
2022-12-07 08:38:02 +00:00
}
2023-09-04 14:48:30 +00:00
location /admin {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-09-04 14:48:30 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://admin-dashboard;
}
2024-04-06 12:30:01 +00:00
location /isolated-vm {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-04-06 12:30:01 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://isolated-vm;
}
2024-09-16 15:42:50 +00:00
location /worker {
# This is for nginx not to crash when service is not available.
resolver 127.0.0.1 valid=30s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://worker;
}
2022-12-07 08:38:02 +00:00
location /status-page {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-10-31 14:10:57 +00:00
2022-12-20 07:22:41 +00:00
proxy_pass http://status-page;
2022-12-07 08:38:02 +00:00
}
location /identity {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/identity;
2022-12-07 08:38:02 +00:00
}
2023-04-05 10:08:25 +00:00
location /reference {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-02-07 21:51:53 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2024-09-18 13:39:11 +00:00
proxy_pass http://api-reference;
2023-02-07 21:51:53 +00:00
}
2024-03-18 13:12:39 +00:00
location /docs {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2024-03-18 13:12:39 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2024-09-18 19:36:45 +00:00
proxy_pass http://docs;
2024-03-18 13:12:39 +00:00
}
2023-12-25 13:39:11 +00:00
location /file {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/file;
2022-12-07 08:38:02 +00:00
client_max_body_size 50M;
}
location /api {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2023-11-13 19:31:44 +00:00
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 16:49:47 +00:00
proxy_pass http://app/api;
2023-11-13 19:31:44 +00:00
client_max_body_size 50M;
}
2023-11-15 18:49:43 +00:00
location /realtime {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-11-15 18:49:43 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app;
2023-11-15 18:49:43 +00:00
client_max_body_size 50M;
}
2023-11-13 19:31:44 +00:00
location /analytics-api {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-11-13 19:31:44 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2022-12-07 08:38:02 +00:00
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app;
2022-12-07 08:38:02 +00:00
client_max_body_size 50M;
}
2023-02-01 13:08:45 +00:00
2023-07-29 15:21:47 +00:00
location /heartbeat {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-07-29 15:21:47 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-10-09 17:54:23 +00:00
proxy_pass http://ingestor/incoming-request;
2023-07-29 15:21:47 +00:00
client_max_body_size 50M;
}
2023-02-01 13:08:45 +00:00
location /workflow {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-02-01 13:08:45 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2024-09-16 22:22:15 +00:00
proxy_pass http://workflow;
2023-02-01 13:08:45 +00:00
client_max_body_size 50M;
}
2023-08-25 12:19:38 +00:00
location /l/ { # Short URL for Link Shortener
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2023-07-01 12:08:50 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2023-12-28 15:54:27 +00:00
proxy_pass http://app/api/short-link/redirect-to-shortlink/;
2023-07-01 12:08:50 +00:00
client_max_body_size 50M;
}
2022-12-07 08:38:02 +00:00
location /workers {
2024-04-23 19:56:16 +00:00
# This is for nginx not to crash when service is not available.
2024-04-23 14:34:37 +00:00
resolver 127.0.0.1 valid=30s;
2022-12-07 08:38:02 +00:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable WebSockets (for ws://sockjs not connected error in the accounts source: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2024-01-11 12:17:17 +00:00
proxy_pass http://app/api/workers;
2022-12-07 08:38:02 +00:00
}
2024-03-31 09:12:41 +00:00
}