There is an endless number of ways to design and build a gantry beam. The vast majority of them can benefit from a machine shop. The problem with machine shops is the cost which is why everyone explores work arounds. Part of the cost comes from the need for a large mill to handle a large frame or gantry beam, a 1.5 meter working area implies a killing machine with almost 2 meters of travel.
On beam thickness: If this was an MDF only machine you could get by with relatively thin wall thicknesses in the beam. However you need to consider screw holding capability so you will want a wall thickness of at least 1.5 times the screw diameter for the selected rails. This is if you choose rails with through hole mounting. The alternative is to buy rails with threaded mounting holes and put the clearance holes in the beam. Depending upon you expectations for MDF you could get by with a beam wall thickness of 2 to 3 millimeters with the taped rails.
I’m not suggesting that you do this as it would be a compromise in my opinion and would not be suitable at all for you Metal machining goals. In freedom unit terms I’d would want at least an 8 inch square beam of half inch wall thickness. That is off the cuff with no engineering calculations done. If you have specific performance goals you need to do the calculations to design a beam to exceed your maximum allowable conditions.
Even more importantly there are design considerations that make it a mistake in my opinion to expect much more than extremely occasional use in metal ( aluminum only really).
For one; any amount of metal machining beyond the trivial really needs flood coolant this alone impacts the machines design.
Second; a moving table design, with about the same investment in materials and time, will leave you with a stiffer more accurate machine. The materials cost might balloon over a moving gantry a bit but you must realize the need to a heavier and flatter table to support the metal work.
Third; people have already touched upon the spindle issue but the cost of a proper metal machining spindle that can also handle high speed routing really inflated the machines cost. This especially if you are considering an HSK, 30 or 40 taper spindle.
Fourth; the size of the Z axis can become an issue in sizing the gantry beam. If you end up with a couple of hundred pounds in the Z axis you impact your potential performance with low cost components.
Fifth; on a router, cutting wood, you vacuum up dust. When cutting metal you create swarf so chip handling can be very different especially if coolant is involved. The two do not mix well and you would want a dry machine to cut wood. There are approaches for dry machining metals but the reality is you are better off with a coolant / lube so anything CNC wise I would expect the use of coolant.
Sixth; chip containment is a big problem with machining metals. I run a manual Bridgeport at work and frankly clean up is always a chore. A CNC is often worse due to the machine techniques chosen. Flood coolant might help to contain the flying metal or just make the mess worse. So even without flood coolant a machine enclosure is of big benefit for metal machining.
In any event it is hard to judge ones expectations and actual usage patterns on this forum. As such some of the above might not apply. However do consider if any might be a problem for you. I really believe it is best to express caution when people indicate a desire to machine metals on a low end router. It might be possible to one degree or another or might not work at all. Frankly what might be possible in one persons eye might be a joke in another’s. As such you really need to get a handle on your expectations because it might not be possible for a router to meet those expectations.