Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/not fail on receiving with unknown ocpp properties #1460

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add nginx reverse proxy
  • Loading branch information
dakai-wei-of-shizen committed May 20, 2024
commit 29812aab386d633d9f84db3ad19a12608f64a863
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,12 @@ services:
- "8443:8443"
depends_on:
- db

nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
38 changes: 38 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Basic Nginx configuration structure

# Global configurations might be here
# ...

events {
# Essential event-based directives go here
# For example:
# worker_connections
# ...
}

http {
# HTTP-related configurations go here

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;

proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
location / {

proxy_pass https://app:8180/steve/websocket/CentralSystemService/;

}
}

# Other server blocks or configurations can follow here
# ...

}