-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved nginx config: Provide template and includes
Packaging is done via %config(noreplace) as this should make the life easier for the operator. See https://www.cl.cam.ac.uk/~jw35/docs/rpm_config.html
- Loading branch information
Showing
6 changed files
with
90 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
root /usr/share/openqa/public; | ||
|
||
client_max_body_size 0; | ||
|
||
# The "client_body_buffer_size" value should usually be larger | ||
# than the UPLOAD_CHUNK_SIZE used by openQA workers, so there is | ||
# no excessive buffering to disk | ||
client_body_buffer_size 2m; | ||
|
||
# Default is exact which would need an exact match of Last-Modified | ||
if_modified_since before; | ||
|
||
## Optional faster assets downloads for large deployments | ||
#location /assets { | ||
# alias /var/lib/openqa/share/factory; | ||
# tcp_nopush on; | ||
# sendfile on; | ||
# sendfile_max_chunk 1m; | ||
#} | ||
# | ||
## Optional faster image downloads for large deployments | ||
#location /image { | ||
# alias /var/lib/openqa/images; | ||
# tcp_nopush on; | ||
# sendfile on; | ||
# sendfile_max_chunk 1m; | ||
#} | ||
|
||
location /api/v1/ws/ { | ||
proxy_pass http://websocket; | ||
proxy_http_version 1.1; | ||
proxy_read_timeout 3600; | ||
proxy_send_timeout 3600; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
location /liveviewhandler/ { | ||
proxy_pass http://livehandler; | ||
proxy_http_version 1.1; | ||
proxy_read_timeout 3600; | ||
proxy_send_timeout 3600; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
location / { | ||
proxy_pass "http://webui"; | ||
tcp_nodelay on; | ||
proxy_read_timeout 900; | ||
proxy_send_timeout 900; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-Host $host:$server_port; | ||
proxy_set_header X-Forwarded-Server $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# The "max_conns" value should be identical to the maximum number of | ||
# connections the webui is configured to handle concurrently | ||
upstream webui { | ||
zone upstream_webui 64k; | ||
server [::1]:9526 max_conns=30; | ||
} | ||
|
||
upstream websocket { | ||
server [::1]:9527; | ||
} | ||
|
||
upstream livehandler { | ||
server [::1]:9528; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include vhosts.d/openqa-upstreams.inc; | ||
|
||
server { | ||
listen 80 default_server; | ||
listen [::1]:80 default_server; | ||
server_name openqa.example.com; | ||
|
||
include vhosts.d/openqa-locations.inc; | ||
} |