Merge "Remove document for proxy setting"

This commit is contained in:
Jenkins 2016-12-16 20:17:57 +00:00 committed by Gerrit Code Review
commit b5ac1d57d4
2 changed files with 0 additions and 120 deletions

View File

@ -1,71 +0,0 @@
Apache proxy service to pod-manager API
=======================================
This manual has been verified on Ubuntu 16.04 + Apache (2.4.18-2ubuntu3.1).
##Install
1. Use package manager tool on your distribution to install apache server.
```
sudo apt-get install apache2
```
2. Enable all related modules for Apache server.
```
sudo a2enmod proxy_http proxy ssl headers
```
3. Setup virtual host for proxy to podm.
```
sudo cp podm-proxy.conf /etc/apache2/sites-available
sudo a2ensite podm-proxy
```
4. Add listening port 6000.
Add "Listen 6000" into Apaches port setting file /etc/apache2/ports.conf.
* If need, you can change it to any available port in your server. In this case, please remember to update
"<VirtualHost *:6000>" in /etc/apache2/sites-available/podm-proxy.conf.
5. Update podm address in /etc/apache2/sites-available/podm-proxy.conf.
By default, the podm api is pointed to https://127.0.0.1:8443/. Update it to fit your environment.
6. Restart Apache server.
```
sudo systemctl restart apache2
```
The proxy is available under http://127.0.0.1:6000/redfish/v1.
```
curl http://127.0.0.1:6000/redfish/v1/
{
"@odata.context" : "/redfish/v1/$metadata#ServiceRoot",
"@odata.id" : "/redfish/v1",
"@odata.type" : "#ServiceRoot.1.0.0.ServiceRoot",
"Id" : "ServiceRoot",
"Name" : "Service root",
"RedfishVersion" : "1.0.0",
"UUID" : "3c414ee3-bd28-4e6c-b9e8-fd8008dbd0ce",
"Chassis" : {
"@odata.id" : "/redfish/v1/Chassis"
},
"Services" : {
"@odata.id" : "/redfish/v1/Services"
},
"Systems" : {
"@odata.id" : "/redfish/v1/Systems"
},
"Managers" : {
"@odata.id" : "/redfish/v1/Managers"
},
"EventService" : {
"@odata.id" : "/redfish/v1/EventService"
},
"Nodes" : {
"@odata.id" : "/redfish/v1/Nodes"
},
"EthernetSwitches" : {
"@odata.id" : "/redfish/v1/EthernetSwitches"
},
"Oem" : {
"Intel_RackScale" : {
"@odata.type" : "#Intel.Oem.ServiceRoot",
"ApiVersion" : "1.2.0"
}
},
"Links" : { }
}
```

View File

@ -1,49 +0,0 @@
<VirtualHost *:6000>
# Reserve proxy to podm
ProxyRequests Off
# If needed, change following default pod address https://127.0.0.1:8443/
# to real podm api in your environment.
ProxyPass / https://127.0.0.1:8443/
ProxyPassReverse / https://127.0.0.1:8443/
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
# Ignore ssl certificate check when proxy request to podm
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
# Append http header in request to podm to set up authorization.
# Default username/password: admin/admin. Please change to fit your specific setting.
RequestHeader set Authorization 'Basic YWRtaW46YWRtaW4='
RequestHeader set User-Agent 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'
# Append http header in response to enable CORS
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"
Header set Access-Control-Allow-Headers "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token"
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet