Some checks failed
Build and Deploy Demo App (Artifacts, GHES/Gitea-safe) / test (push) Successful in 12s
Build and Deploy Demo App (Artifacts, GHES/Gitea-safe) / build (push) Failing after 3m11s
Build and Deploy Demo App (Artifacts, GHES/Gitea-safe) / scan (push) Has been skipped
Build and Deploy Demo App (Artifacts, GHES/Gitea-safe) / deploy (push) Has been skipped
fit to artifact size
33 lines
880 B
Plaintext
33 lines
880 B
Plaintext
server {
|
|
listen 80;
|
|
server_name demo.networkwizard.xyz;
|
|
location / {
|
|
return 301 https://$host:4433$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name demo.networkwizard.xyz;
|
|
ssl_certificate /etc/nginx/ssl/origin_cert.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/origin_key.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
client_max_body_size 2g; # allow big artifacts
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
|
|
location / {
|
|
proxy_pass http://app:5000;
|
|
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;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|