Simple Express app to serve Cox Solution Finder project in the showroom.
Update static, public files:
./script/update-public.sh dev
Sync records:
./script/sync.rb dev
This nginx config shows how to run the static site and this app as a subdirectory.
server {
listen 80;
server_name html.csf.dev.nookwit.com;
root /home/stonewit/source/cox-solution-finder/public/;
location / {
index index.html;
}
rewrite ^/showroomstatus$ /_status_/update redirect;
rewrite ^/_status_/update\.html$ /_status_/update redirect;
location /_status_/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:3001/_status_/;
}
location /stats/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:3001/stats/;
}
location /socket.io/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:3001/socket.io/;
}
}
- SSID:
cox-sfv2-showroom-dev
,cox-sfv2-showroom
, orcox-sfv2-showroom-mxm
- Password:
s01uTIon5
- URL: http://showroom.mxm
- Ethernet Interface:
enp0s25
(MACb8:ae:ed:72:a1:e9
) - nuc.showroom.dev.sfv2.cox.mxmcloud.com
- WiFi Interface:
wlp2s0
(MAC34:13:e8:1e:e3:67
) - DHCP:
192.168.63.1/24
- SSID:
cox-showroom-dev
- Ethernet Interface:
enp0s25
(MACb8:ae:ed:72:0c:84
) - nuc1.showroom.sfv2.cox.mxmcloud.com
- WiFi Interface:
wlp2s0
(MAC34:13:e8:0f:7f:58
) - DHCP:
192.168.127.1/25
- SSID:
cox-showroom-1
- Ethernet Interface:
enp0s25
(MACb8:ae:ed:72:94:f9
) - nuc2.showroom.sfv2.cox.mxmcloud.com
- WiFi Interface:
wlp2s0
(MAC34:13:e8:1d:fe:48
) - DHCP:
192.168.127.129/25
- SSID:
cox-showroom-2
- Ethernet Interface:
enp0s25
(MACb8:ae:ed:72:31:ed
) - nuc3.showroom.sfv2.cox.mxmcloud.com
- WiFi Interface:
wlp2s0
(MAC34:13:e8:1f:e2:8a
) - DHCP:
192.168.126.1/25
- SSID:
cox-showroom-3
- Ethernet Interface:
enp0s25
(MACb8:ae:ed:72:27:a5
) - nuc4.showroom.sfv2.cox.mxmcloud.com
- WiFi Interface:
wlp2s0
(MAC34:13:e8:10:65:03
) - DHCP:
192.168.126.129/25
- SSID:
cox-showroom-4
Update Date/time & setup NTP
yum install -y ntp ntpdate
Set timezone to UTC
timedatectl set-timezone UTC
Add these servers to the /etc/ntp.conf
:
server time.nist.gov
server nist1-macon.macon.ga.us
Update time & hardware clock:
ntpdate time.nist.gov
hwclock --systohc
Start ntpdate:
systemctl enable ntpdate.service
systemctl start ntpdate.service
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --permanent --add-service=dhcp
firewall-cmd --permanent --add-service=dns
firewall-cmd --permanent --add-service=dhcpv6
firewall-cmd --reload
The Intel Wireless 7265 interface requires the backported iwlwifi driver from 3.14.22-1. The following packages are also requried:
yum install -y kernel-devel iw iwl7265-firmware autogen-libopts pciutils lshw
To install the backported drivers:
cd /usr/local/src
wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.14.22/backports-3.14.22-1.tar.xz
tar -xJvf backports-3.14.22-1.tar.xz
rm -f backports-3.14.22-1.tar.xz
cd backports-3.14.22-1
make defconfig-iwlwifi
make -j3
make install
Disable it... /etc/selinux/config
set SELINUX=disabled