Moving HTTP kiwix/help services to 9085/9086 ports. Nginx will serve HTTPS proxy for kiwix/help services at the old ports. Modifying apache2 to use HTTPS to serve map.

Using new https_proxy docker container to serve HTTPS for zim, map and help.
This commit is contained in:
Roland 2024-06-12 18:44:59 -06:00
parent ae61977f0b
commit 38de2f9b40
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
31 changed files with 450 additions and 244 deletions

View file

@ -7,6 +7,7 @@ import {
humanFileSize,
IframeViewer,
InfoMessage,
MAP_VIEWER_URI,
PageContainer,
TabLinks,
useTitle,
@ -32,9 +33,6 @@ import {Loader, Placeholder, Table} from "./Theme";
import {StatusContext} from "../contexts/contexts";
import _ from "lodash";
const VIEWER_URL = `http://${window.location.hostname}:8084/`;
function DockerMapImportWarning() {
const {status} = useContext(StatusContext);
if (status['dockerized']) {
@ -95,7 +93,7 @@ function DownloadMessage() {
const ViewerMessage = () => {
return <HandPointMessage>
<p>You can view your Map at <a href={VIEWER_URL}>{VIEWER_URL}</a></p>
<p>You can view your Map at <a href={MAP_VIEWER_URI}>{MAP_VIEWER_URI}</a></p>
</HandPointMessage>
}
@ -293,7 +291,7 @@ class ManageMap extends React.Component {
}
function MapPage() {
return <IframeViewer title='map' viewerUrl={VIEWER_URL}/>
return <IframeViewer title='map' viewerUrl={MAP_VIEWER_URI}/>
}
export function MapRoute() {