Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

Table of Contents

...

Panel

mft:~# touch /data/test.1.txt
mft:~# stat /data/test.1.txt
File: /data/test.1.txt
Size: 0 Blocks: 0 IO Block: 262144 regular empty file
Device: 1bh/27d Inode: 260790 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-09-28 16:38:0102.689853504 089853504 +0000
Modify: 2022-09-28 16:38:0102.689853504 089853504 +0000
Change: 2022-09-28 16:38:0102.689853504 089853504 +0000

Validate that the file exists on the storage server before continuing.

...

Panel

# ifconfig -a
eth0       Link encap:Ethernet HWaddr 08:00:27:1E:96:CF
           inet addr:10.0.2.15 Bcast:0.0.0.0 Mask:255.255.255.0
           inet6 addr: fe80::a00:27ff:fe1e:96cf/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
           TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1180 (1.1 KiB) TX bytes:1970 (1.9 KiB)

eth1        Link encap:Ethernet HWaddr 08:00:27:E3:61:8C
            inet addr:192.168.56.101 Bcast:0.0.0.0 Mask:255.255.255.0
            inet6 addr: fe80::a00:27ff:fee3:618c/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
            RX packets:6322 errors:0 dropped:0 overruns:0 frame:0
            TX packets:19415 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:1181451 (1.1 MiB) TX bytes:1548756 (12.6 0 MiB)

lo.         Link encap:Local Loopback
            inet addr:127.0.0.1 Mask:255.0.0.0
            inet6 addr: ::1/128 Scope:Host
            UP LOOPBACK RUNNING MTU:65536 Metric:1
            RX packets:96944 errors:0 dropped:0 overruns:0 frame:0
            TX packets:96944 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:5988148 (5.7 MiB) TX bytes:5988148 (5.7 MiB)

...

Panel

mft:~# ifconfig -a
eth1       Link encap:Ethernet HWaddr 08:00:27:E3:61:8C
           inet addr:192.168.56.101 Bcast:0.0.0.0 Mask:255.255.255.0
           inet6 addr: fe80::a00:27ff:fee3:618c/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:6769 errors:0 dropped:0 overruns:0 frame:0
           TX packets:20079 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1232486 (1.1 MiB) TX bytes:1609240 (12.6 0 MiB)

eth1:1     Link encap:Ethernet HWaddr 08:00:27:E3:61:8C
           inet addr:192.168.56.100 Bcast:0.0.0.0 Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

...

Configure the NGINX service to reach the IP that was configured before:

Panel

upstream udmg_auth_proxy {
    ip_hash;
    server <SERVERNAME or SERVER IP>:5775;
    keepalive 10;
}

server {
    listen <SERVERNAME or SERVER IP>::80 default_server;

    location / {
        try_files $uri $uri/ /index.html;
        root "/var/www/localhost/htdocs";
    }

    location /service/ {
      proxy_pass      http://udmg_auth_proxy/;
    }

# You may need this to prevent return 404 recursion.
    location = /404.html {
    internal;
    }
}

...