https://github.com/tjakopan/sse-http2-nginx-httpd-demo
Demo of running a backend behind either nginx or httpd with HTTP/2 support and server sent events. nginx does not support HTTP/2 when proxy-ing, although it supports HTTP/2 from the client to nginx.
https://github.com/tjakopan/sse-http2-nginx-httpd-demo
http-2 httpd nginx server-sent-events
Last synced: 3 months ago
JSON representation
Demo of running a backend behind either nginx or httpd with HTTP/2 support and server sent events. nginx does not support HTTP/2 when proxy-ing, although it supports HTTP/2 from the client to nginx.
- Host: GitHub
- URL: https://github.com/tjakopan/sse-http2-nginx-httpd-demo
- Owner: tjakopan
- Created: 2024-12-24T14:13:23.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-24T14:17:15.000Z (5 months ago)
- Last Synced: 2024-12-24T15:32:45.777Z (5 months ago)
- Topics: http-2, httpd, nginx, server-sent-events
- Language: Java
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demo of running a backend behind either nginx or httpd with HTTP/2 support and server sent events. nginx does not
support HTTP/2 when proxy-ing, although it supports HTTP/2 from the client to nginx.# Certificates
In order to regenerate certificate if it expires, run the following:
```shell
openssl genrsa -out ./certs/server.key 2048
openssl req -new -x509 -key ./certs/server.key -out ./certs/server.crt -days 365 -subj "/CN=localhost"
```# Running
There are a couple of run profiles in the .run directory which are recognized by IntelliJ IDEA Ultimate:
- demo - runs demo application with /demo (GET) and /demo/sse (server sent events) on localhost:8080
- nginx - starts nginx from docker-compose.yaml
- httpd - starts httpd from docker-compose.yaml
- demo-with-nginx - starts demo and nginx
- demo-with-httpd - starts demo and http