location / {
proxy_pass http://192.168.77.10/;
proxy_redirect http://192.168.77.10/ https://superdesk.example.com/;
# TODO: use "config.js:server" for user installations
sub_filter_once off;
sub_filter_types application/javascript;
sub_filter 'http://localhost' 'http://$host';
sub_filter 'ws://localhost/ws' 'ws://$host/ws';
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/proxy_params;
}
location /ws {
proxy_pass http://192.168.77.10:5100;
proxy_redirect http://192.168.77.10:5100/ https://superdesk.example.com/ws;
include /etc/nginx/proxy_params;
#proxy_http_version 1.1;
#proxy_buffering off;
#proxy_read_timeout 3600;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection "Upgrade";
}
location /api {
proxy_pass http://192.168.77.10:5000;
proxy_redirect http://192.168.77.10:5000/ https://superdesk.example.com/api;
include /etc/nginx/proxy_params;
#proxy_set_header Host localhost;
expires epoch;
sub_filter_once off;
sub_filter_types application/json;
sub_filter 'http://localhost' 'http://$host';
}
location /contentapi {
proxy_pass http://192.168.77.10:5400;
proxy_redirect http://192.168.77.10:5400/ https://superdesk.example.com/contentapi;
include /etc/nginx/proxy_params;
#proxy_set_header Host localhost;
expires epoch;
}
location /mail {
proxy_pass http://192.168.77.10/mail;
proxy_redirect http://192.168.77.10/mail https://superdesk.example.com/mail;
#alias /var/log/superdesk/mail/;
include /etc/nginx/proxy_params;
default_type text/plain;
autoindex on;
autoindex_exact_size off;
}
window.superdeskConfig={
defaultTimezone: "Europe/Oslo",
server: {
url: "https://example.superdesk.pro/api",
ws: "wss://example.superdesk.pro/ws"
},
};
It looks like you're new here. If you want to get involved, click one of these buttons!