2022-11-15 16:29:46 -05:00
// Module included in the following assemblies:
//
// * microshift_networking/microshift-networking.adoc
2023-10-30 10:13:25 -04:00
:_mod-docs-content-type: PROCEDURE
2023-05-22 17:29:55 -04:00
[id="microshift-rpm-ostree-https_{context}"]
2024-02-15 04:02:18 +05:30
= Using the RPM-OStree HTTP or HTTPS proxy
2022-12-19 16:53:44 +01:00
2024-02-15 04:02:18 +05:30
To use the HTTP or HTTPS proxy in RPM-OStree, you must add a `Service` section to the configuration file and set the `http_proxy environment` variable for the `rpm-ostreed` service.
2022-11-15 16:29:46 -05:00
.Procedure
2022-12-19 16:53:44 +01:00
2023-11-28 09:44:31 -05:00
. Add this setting to the `/etc/systemd/system/rpm-ostreed.service.d/00-proxy.conf` file:
2022-11-15 16:29:46 -05:00
+
2023-08-28 15:02:13 -04:00
[source,terminal]
2022-11-15 16:29:46 -05:00
----
2023-11-28 09:44:31 -05:00
[Service]
2022-11-15 16:29:46 -05:00
Environment="http_proxy=http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY_PORT/"
----
. Next, reload the configuration settings and restart the service to apply your changes.
2025-11-04 15:41:59 +00:00
+
2022-12-19 16:53:44 +01:00
.. Reload the configuration settings by running the following command:
2022-11-15 16:29:46 -05:00
+
2023-08-28 15:02:13 -04:00
[source,terminal]
2022-11-15 16:29:46 -05:00
----
$ sudo systemctl daemon-reload
----
2025-11-04 15:41:59 +00:00
+
2023-11-28 09:44:31 -05:00
.. Restart the `rpm-ostreed` service by running the following command:
2022-11-15 16:29:46 -05:00
+
2023-08-28 15:02:13 -04:00
[source,terminal]
2022-11-15 16:29:46 -05:00
----
$ sudo systemctl restart rpm-ostreed.service
----
2023-05-22 17:29:55 -04:00
//Q: Instructions for how to test that the proxy works by booting the image, verifying that MicroShift starts, and that the application is accessible?