Skip to content

Commit

Permalink
simplify nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
geektortoise committed Nov 12, 2019
1 parent 8b13423 commit f54e835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
38 changes: 4 additions & 34 deletions configs/nginx/nginx.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -48,61 +48,31 @@ http {
root /tmp/dist;
index index.html;

location /j_spring_security { # check and logout
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /login {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /logout {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /server {
location /j_spring_security { # check and logout
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /session {
location ~ /(login|logout) {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /custom-ui {
location ~ /(server|session|custom-ui|static) {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /restApiDoc {
location ~ /(restApiDoc|js/jsondoc|css/jsondoc) {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /js/jsondoc {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /css/jsondoc {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}
location /static {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://core:8080;
}

}
server {
Expand Down
2 changes: 1 addition & 1 deletion configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RABBITMQ_PASS="router"



# You don't to change the datas below this line instead of advanced customization
# You don't have to change the datas below this line instead of advanced customization
# ---------------------------

NB_IIP_PROCESS=10
Expand Down

0 comments on commit f54e835

Please sign in to comment.