The Shulchan Aruch · Orach Chayim
אורח חיים תר״פOrach Chayim 680
Siman 680 of 697 in Orach Chayim — 2 se'ifim
הלכות חנוכהLaws of Chanukah· siman 680
Se’if 1א׳
בְּלֵיל שַׁבָּת צָרִיךְ לִתֵּן שׁוּם דָּבָר, לַחוּץ בֵּין הַנֵּרוֹת לַפֶּתַח, בִּשְׁבִיל הָרוּחַ שֶׁלֹּא יְכַבֶּה הַנֵּרוֹת כְּשֶׁפּוֹתֵחַ אֶת הַדֶּלֶת.
Not to Leave the Lights Near the Entrance on the Sabbath Eve, 2 Seifim:
Se’if 2ב׳
בְּעֶרֶב שַׁבָּת אָסוּר לִקְבֹּעַ הַנֵּרוֹת בַּדֶּלֶת עַצְמָהּ אֲחוֹרֵי הַדֶּלֶת, וְיֵשׁ מִי שֶׁמַּתִּיר וְעַיֵּן לְעֵיל סי' רע"ז סָעִיף א'.
On the Sabbath Eve it is prohibited to mount the lights on the door itself, behind the door, but there is [an opinion] that permits [this]. [And see above Section 277 Paragraph 1.]
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0