summary refs log tree commit diff
path: root/synapse_topology/webui/src/js/components/ReverseProxySampleConfig.jsx
blob: 92aee9e51c6345f58d43af37635828eed3e92e2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';

import ContentWrapper from '../containers/ContentWrapper';
import ButtonDisplay from './ButtonDisplay';
import DownloadOrCopy from './DownloadOrCopy';
import { REVERSE_PROXY_TYPES } from '../actions/constants';

export default ({ proxyType, sampleConfig, fileName, onClick }) => {

    return <ContentWrapper>
        <h1 className='setupCompleteTitle'>Configure the ReverseProxy</h1>
        <p>
            It's time for you to setup the reverse proxy outside of this installer.
        </p>
        {
            proxyType == REVERSE_PROXY_TYPES.OTHER ?
                <p>
                    Here's a sample config for Apache. Since you chose 'other'
                    for your reverse proxy. You'll have to figure it out
                    for yourself. We believe in you.
                </p>
                :
                <p>
                    We can't do it for you
                    but here's the sample configuration for your {proxyType} proxy.
                </p>
        }
        <pre>
            <code>
                {sampleConfig}
            </code>
        </pre>
        <DownloadOrCopy content={sampleConfig} fileName={fileName} onClick={onClick} />
    </ContentWrapper>;

}