server {
listen 80;
server_name alfresco.vas.web.id edoc-lrt.vas.web.id;
location / {
#location of application IP and port
proxy_pass http://192.168.1.253:8880;
proxy_set_header Host $http_host;
#proxy_set_header X-Script-Name /;
#this is maximum file upload to application
client_max_body_size 1000m;
}
}
if u user sock file this is what you got
server {
listen 80;
server_name agenda.vas.web.id;
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/agenda.sock;
}
}
For ssl termination just add ssl_certificate :
server {
listen 443 ssl;
server_name sign.vas.web.id;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/signapp.sock;
}
}
0 comments:
Post a Comment