Here is the lighting setup on my touring bike.
DIY Luxeon 1-watt LED in matching elliptical lens and holder. I used a 1-inch PVC pipe coupler to house it all.
Here is the dynamo that powers the LED headlight and Taillight with a little current leftover to recharge the batteries.
Bridge rectifier terminal strip consisting of 4 1N5818 diodes. The dynamo produces AC current and the LED's and batteries need DC current. The bridge rectifier does that job.
Front terminal strip with a resistor to regulate current for the 1-watt LED in the headlight, switch connection for turning LED's off and on, and cable running to the rear terminal strip. There is also a capacitor for use with the dynamo just in case the batteries fail so I can power the LED's directly from the dynamo.
Rear terminal strip with taillight resistor to regulate current to the 5000 MCD LED in the taillight and battery connection. I can also charge other batteries by connecting a charging cable to this terminal strip. I can power and recharge my GPS unit from this terminal strip during daylight hours with the LED's turned off and the dynamo engaged.
I never need to plug in my batteries to recharge them; I do that with the dynamo as I pedal along.