Browse Source

python2-runtime: limit cglimit listen on localhost only

It doesn't make sense to expose the cglimit API to the outside as it is
only accessed locally. Limiting it only listen on localhost prevents
access from the outside and thus improves the security.

Change-Id: I941b7f8c33e5a631bef18df6667423c5bbdbf779
changes/83/582083/1
Hunt Xu 3 years ago
parent
commit
30fcd00be4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      runtimes/python2/custom-entrypoint.sh

+ 1
- 1
runtimes/python2/custom-entrypoint.sh View File

@ -3,4 +3,4 @@
uwsgi --http :9090 --uid qinling --wsgi-file server.py --callable app --master --processes 5 --threads 1 &
uwsgi --http :9092 --uid root --wsgi-file cglimit.py --callable app --master --processes 1 --threads 1
uwsgi --http 127.0.0.1:9092 --uid root --wsgi-file cglimit.py --callable app --master --processes 1 --threads 1

Loading…
Cancel
Save