[fusion_builder_container type="flex" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="flex-start" flex_justify_content="flex-start" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="div" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_sizes="" border_style="solid" spacing_medium="" spacing_small="" padding_dimensions_medium="" padding_dimensions_small="" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_color="" gradient_end_color="" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation_direction="left" animation_speed="0.3" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" align_self="auto" content_layout="column" align_content="center" content_wrap="wrap" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" type_medium="" type_small="" order_medium="0" order_small="0" dimension_spacing_medium="" dimension_spacing_small="" dimension_spacing="" dimension_margin_medium="" dimension_margin_small="" margin_top="" margin_bottom="" padding_medium="" padding_small="" padding_top="" padding_right="" padding_bottom="" padding_left="" hover_type="none" border_sizes="" border_color="" border_style="solid" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" background_type="single" gradient_start_color="" gradient_end_color="" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" background_blend_mode="none" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" filter_type="regular" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0" last="true" border_position="all" first="true" type="1_1"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Présentation
Un serveur Nginx n'est pas toujours simple à gérer pour les personnes qui ne sont pas du milieu de l'administration Linux. C'est pourquoi nous allons vous présenter l'outil Nginx Proxy Manager, développé par Jamie Curnow (JC21) en 2018.
Nginx Proxy Manager est open source, fournit une interface graphique pour la gestion des fichiers de configuration Nginx. Le but de ce projet est de gérer les hôtes virtuels, sans pour autant avoir de connaissances en Nginx ni Let's Encrypt.
Il permet également de configurer graphiquement un mandataire inversé, plus couramment appelé reverse proxy.
[/fusion_text][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Installation
Idéalement, il faut qu'un nom de domaine pointe vers le serveur où Nginx Proxy Manager sera installé.
Nginx Proxy Manager est disponible sous forme d'image Docker. Il nécessite également une base de données MySQL.
Démonstration sur Debian 10.
Premièrement, il faut créer le répertoire où Nginx Proxy Manager sera installé :
[/fusion_text][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""][/fusion_text][fusion_syntax_highlighter theme="" language="" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]bWtkaXIgLXAgfi9uZ2lueC1wcm94eS1tYW5hZ2Vy[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Ensuite, on va créer le fichier de configuration config.json
dans le dossier que nous venons de créer. Son contenu est le suivant :
[/fusion_text][fusion_syntax_highlighter theme="" language="json" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]ewogICJkYXRhYmFzZSI6IHsKICAgICJlbmdpbmUiOiAibXlzcWwiLAogICAgImhvc3QiOiAiZGIiLAogICAgIm5hbWUiOiAibnBtIiwKICAgICJ1c2VyIjogIm5wbSIsCiAgICAicGFzc3dvcmQiOiAibnBtIiwKICAgICJwb3J0IjogMzMwNgogIH0KfQ==[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Créer ensuite le fichier docker-compose.yml
dans le même répertoire.
[/fusion_text][fusion_syntax_highlighter theme="" language="" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]dmVyc2lvbjogIjMiCnNlcnZpY2VzOgogIGFwcDoKICAgIGltYWdlOiBqYzIxL25naW54LXByb3h5LW1hbmFnZXI6MgogICAgcmVzdGFydDogYWx3YXlzCiAgICBwb3J0czoKICAgICAgIyBQdWJsaWMgSFRUUCBQb3J0OgogICAgICAtICc4MDo4MCcKICAgICAgIyBQdWJsaWMgSFRUUFMgUG9ydDoKICAgICAgLSAnNDQzOjQ0MycKICAgICAgIyBBZG1pbiBXZWIgUG9ydDoKICAgICAgLSAnODE6ODEnCiAgICBlbnZpcm9ubWVudDoKICAgICAgIyBVbmNvbW1lbnQgdGhpcyBpZiBJUHY2IGlzIG5vdCBlbmFibGVkIG9uIHlvdXIgaG9zdAogICAgICBESVNBQkxFX0lQVjY6ICd0cnVlJwogICAgdm9sdW1lczoKICAgICAgIyBNYWtlIHN1cmUgdGhpcyBjb25maWcuanNvbiBmaWxlIGV4aXN0cyBhcyBwZXIgaW5zdHJ1Y3Rpb25zIGFib3ZlOgogICAgICAtIC4vY29uZmlnLmpzb246L2FwcC9jb25maWcvcHJvZHVjdGlvbi5qc29uCiAgICAgIC0gLi9kYXRhOi9kYXRhCiAgICAgIC0gLi9sZXRzZW5jcnlwdDovZXRjL2xldHNlbmNyeXB0CiAgICBkZXBlbmRzX29uOgogICAgICAtIGRiCiAgICBkYjoKICAgICAgaW1hZ2U6IGpjMjEvbWFyaWFkYi1hcmlhOjEwLjQKICAgICAgcmVzdGFydDogYWx3YXlzCiAgICAgIGVudmlyb25tZW50OgogICAgICAgIE1ZU1FMX1JPT1RfUEFTU1dPUkQ6ICducG0nCiAgICAgICAgTVlTUUxfREFUQUJBU0U6ICducG0nCiAgICAgICAgTVlTUUxfVVNFUjogJ25wbScKICAgICAgICBNWVNRTF9QQVNTV09SRDogJ25wbScKICAgICAgdm9sdW1lczoKICAgICAgICAtIC4vZGF0YS9teXNxbDovdmFyL2xpYi9teXNxbA==[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
On crée ensuite les conteneurs :
[/fusion_text][fusion_syntax_highlighter theme="" language="" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]ZG9ja2VyLWNvbXBvc2UgdXAgLWQ=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
L'installation étant terminée, on peut désormais accéder au panel d'administration depuis le navigateur, à l'URL correspondant au nom de domaine pointant sur votre serveur, sur le port 81.
[/fusion_text][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Les identifiants pour se connecter sont par défaut :
[/fusion_text][fusion_syntax_highlighter theme="" language="" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]RW1haWwgOiBhZG1pbkBleGFtcGxlLmNvbQpNb3QgZGUgcGFzc2UgOiBjaGFuZ2VtZQ==[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" font_size="" line_height="" letter_spacing="" text_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id=""]
Pour la première connexion, vous avez la possibilité de changer votre prénom, nom et adresse mail. Vous devez également changer le mot de passe.
Utilisation
À vous maintenant de vous amuser, pour configurer votre site, au moyen de certificats SSL ou bien de configurer Nginx en tant que Reverse-proxy !
Source : nginxproxymanager.com
Lien vers le projet GitHub : https://github.com/jc21/nginx-proxy-manager
[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]